Make default end_frame() implementation more useful.
authorVitor Sessak <vitor1001@gmail.com>
Fri, 15 Feb 2008 21:59:41 +0000 (21:59 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Fri, 15 Feb 2008 21:59:41 +0000 (21:59 +0000)
Commited in SoC by Bobby Bingham on 2007-08-17 16:45:47

Originally committed as revision 12066 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavfilter/defaults.c

index e50543b..ca7a42b 100644 (file)
@@ -77,8 +77,10 @@ void avfilter_default_end_frame(AVFilterLink *link)
     link->cur_pic = NULL;
 
     if(out) {
+        if(out->outpic) {
         avfilter_unref_pic(out->outpic);
         out->outpic = NULL;
+        }
         avfilter_end_frame(out);
     }
 }