1
0
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:
Paul B Mahol 2013-08-21 20:02:25 +00:00
parent 71c378984b
commit e7834d29f2

View File

@ -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);