diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-12-19 13:02:05 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-12-19 13:02:05 +0000 |
commit | 69b8d83ecf5f6deb9ad94bdaa816aa205430d3e9 (patch) | |
tree | 1d010fbe2d83b55989bcf032dfff2a28e7d57733 /libavfilter | |
parent | ba68d9d3e16108cc395ad445e4216621b0758c3d (diff) | |
download | ffmpeg-69b8d83ecf5f6deb9ad94bdaa816aa205430d3e9.tar.gz |
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
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_gradfun.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_gradfun.c b/libavfilter/vf_gradfun.c index 1cbf8d8c2a..3a400a04eb 100644 --- a/libavfilter/vf_gradfun.c +++ b/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 = { |