[FFmpeg-soc] [soc]: r4390 - in afilters: Makefile.dummy af_null.c avfilter.c avfilter.h dummy.c

Diego Biurrun diego at biurrun.de
Mon Jun 8 22:19:44 CEST 2009


On Mon, Jun 08, 2009 at 10:17:51PM +0200, Vitor Sessak wrote:
> kdub wrote:
> >
> >--- afilters/avfilter.c	Sun Jun  7 20:19:38 2009	(r4389)
> >+++ afilters/avfilter.c	Mon Jun  8 06:02:12 2009	(r4390)
> >@@ -318,9 +321,12 @@ void avfilter_uninit(void)
> > 
> > static int pad_count(const AVFilterPad *pads)
> > {
> >-    int count;
> >+    if (!pads)
> >+        return 0;
> > 
> >+    int count;
> >     for(count = 0; pads->name; count ++) pads ++;
> 
> I think you cannot declare a var after an if() without at least GCC 2.95 
> complaining.

It means he ignored a warning, which he should not do :)

Diego


More information about the FFmpeg-soc mailing list