You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavfi/separatefields: fix frame leak
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -77,8 +77,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
|
||||
|
||||
inpicref->pts = outlink->frame_count * sf->ts_unit;
|
||||
ret = ff_filter_frame(outlink, inpicref);
|
||||
if (ret < 0)
|
||||
if (ret < 0) {
|
||||
av_frame_free(&second);
|
||||
return ret;
|
||||
}
|
||||
|
||||
second->pts = outlink->frame_count * sf->ts_unit;
|
||||
return ff_filter_frame(outlink, second);
|
||||
|
Reference in New Issue
Block a user