Fix: libavcodec/msmpeg4.c:1612: warning: ‘dc_pred_dir’ may be used uninitialized...
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 9 Feb 2009 22:04:34 +0000 (22:04 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 9 Feb 2009 22:04:34 +0000 (22:04 +0000)
Originally committed as revision 17106 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/msmpeg4.c

index b08a8ea..87866a2 100644 (file)
@@ -1609,7 +1609,7 @@ int ff_msmpeg4_decode_block(MpegEncContext * s, DCTELEM * block,
                               int n, int coded, const uint8_t *scan_table)
 {
     int level, i, last, run, run_diff;
-    int dc_pred_dir;
+    int av_uninit(dc_pred_dir);
     RLTable *rl;
     RL_VLC_ELEM *rl_vlc;
     int qmul, qadd;