avfilter/framesync: allocate FFFrameSyncIn internally

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol
2013-10-05 20:19:23 +00:00
parent a16251a6d0
commit 0190c372ef
5 changed files with 22 additions and 10 deletions
+4 -3
View File
@@ -201,9 +201,9 @@ typedef struct FFFrameSync {
uint8_t eof;
/**
* Array of inputs; all inputs must be in consecutive memory
* Pointer to array of inputs.
*/
FFFrameSyncIn in[1]; /* must be the last field */
FFFrameSyncIn *in;
} FFFrameSync;
@@ -215,8 +215,9 @@ typedef struct FFFrameSync {
* @param fs frame sync structure to initialize
* @param parent parent object, used for logging
* @param nb_in number of inputs
* @return >= 0 for success or a negative error code
*/
void ff_framesync_init(FFFrameSync *fs, void *parent, unsigned nb_in);
int ff_framesync_init(FFFrameSync *fs, void *parent, unsigned nb_in);
/**
* Configure a frame sync structure.