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
oldabi
Stefano Sabatini 14 years ago
parent ba68d9d3e1
commit 69b8d83ecf
  1. 3
      libavfilter/vf_gradfun.c

@ -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 = {

Loading…
Cancel
Save