Commit 69b8d83e authored by Stefano Sabatini's avatar Stefano Sabatini

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
parent ba68d9d3
......@@ -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 = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment