Add av_uninit to variable declarations to fix the false positive warnings:
authorPatrik Kullman <patrik@yes.nu>
Sat, 14 Feb 2009 11:49:54 +0000 (11:49 +0000)
committerDiego Biurrun <diego@biurrun.de>
Sat, 14 Feb 2009 11:49:54 +0000 (11:49 +0000)
vhook/ppm.c:236: warning: 'out_height' may be used uninitialized in this function
vhook/ppm.c:235: warning: 'out_width' may be used uninitialized in this function
patch by Patrik Kullman, patrik yes nu

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

vhook/ppm.c

index 0e37ac4..94c034a 100644 (file)
@@ -232,8 +232,8 @@ void Process(void *ctx, AVPicture *picture, enum PixelFormat pix_fmt, int width,
     AVPicture picture1;
     AVPicture picture2;
     AVPicture *pict = picture;
-    int out_width;
-    int out_height;
+    int av_uninit(out_width);
+    int av_uninit(out_height);
     int i;
     uint8_t *ptr = NULL;
     FILE *in = rwpipe_reader( ci->rw );