mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
avfilter/framesync: allocate FFFrameSyncIn internally
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user