mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavfi/separatefields: fix frame leak
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
71c378984b
commit
e7834d29f2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user