[FFmpeg-cvslog] r26058 - trunk/libavfilter/vf_gradfun.c

stefano subversion
Sun Dec 19 14:02:05 CET 2010


Author: stefano
Date: Sun Dec 19 14:02:05 2010
New Revision: 26058

Log:
Fix crash in gradfun:end_frame() when inpic == outpic, so it has to be
freed just once.

Modified:
   trunk/libavfilter/vf_gradfun.c

Modified: trunk/libavfilter/vf_gradfun.c
==============================================================================
--- trunk/libavfilter/vf_gradfun.c	Sun Dec 19 13:17:40 2010	(r26057)
+++ trunk/libavfilter/vf_gradfun.c	Sun Dec 19 14:02:05 2010	(r26058)
@@ -228,7 +228,8 @@ static void end_frame(AVFilterLink *inli
     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 = {



More information about the ffmpeg-cvslog mailing list