msmpeg4enc: fix possible use of uninitialized warning
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 29 Dec 2012 02:06:08 +0000 (03:06 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 29 Dec 2012 02:07:45 +0000 (03:07 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/msmpeg4enc.c

index 458ec09..71b84df 100644 (file)
@@ -494,7 +494,7 @@ void ff_msmpeg4_encode_mb(MpegEncContext * s,
 static void msmpeg4_encode_dc(MpegEncContext * s, int level, int n, int *dir_ptr)
 {
     int sign, code;
-    int pred, extquant;
+    int pred, av_uninit(extquant);
     int extrabits = 0;
 
     int16_t *dc_val;