mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 14:01:27 +00:00
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:
parent
ba68d9d3e1
commit
69b8d83ecf
@ -228,7 +228,8 @@ static void end_frame(AVFilterLink *inlink)
|
|||||||
avfilter_draw_slice(outlink, 0, inlink->h, 1);
|
avfilter_draw_slice(outlink, 0, inlink->h, 1);
|
||||||
avfilter_end_frame(outlink);
|
avfilter_end_frame(outlink);
|
||||||
avfilter_unref_buffer(inpic);
|
avfilter_unref_buffer(inpic);
|
||||||
avfilter_unref_buffer(outpic);
|
if (outpic != inpic)
|
||||||
|
avfilter_unref_buffer(outpic);
|
||||||
}
|
}
|
||||||
|
|
||||||
AVFilter avfilter_vf_gradfun = {
|
AVFilter avfilter_vf_gradfun = {
|
||||||
|
Loading…
Reference in New Issue
Block a user