mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/framesync: reset nb_in on allocation failure
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
eb392e4100
commit
ccf395e8bd
@ -95,8 +95,11 @@ int ff_framesync_init(FFFrameSync *fs, AVFilterContext *parent, unsigned nb_in)
|
||||
fs->nb_in = nb_in;
|
||||
|
||||
fs->in = av_calloc(nb_in, sizeof(*fs->in));
|
||||
if (!fs->in)
|
||||
if (!fs->in) {
|
||||
fs->nb_in = 0;
|
||||
return AVERROR(ENOMEM);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user