Fix crash in gradfun:end_frame() when inpic == outpic, so it has to be

freed just once.

Originally committed as revision 26058 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Stefano Sabatini 2010-12-19 13:02:05 +00:00
parent ba68d9d3e1
commit 69b8d83ecf

View File

@ -228,7 +228,8 @@ static void end_frame(AVFilterLink *inlink)
avfilter_draw_slice(outlink, 0, inlink->h, 1);
avfilter_end_frame(outlink);
avfilter_unref_buffer(inpic);
avfilter_unref_buffer(outpic);
if (outpic != inpic)
avfilter_unref_buffer(outpic);
}
AVFilter avfilter_vf_gradfun = {