mpeg4videodec: Fix "warning: dc_pred_dir may be used uninitialized in this function"
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 9 Sep 2012 01:15:46 +0000 (03:15 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 9 Sep 2012 01:15:46 +0000 (03:15 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mpeg4videodec.c

index aac1ca1..139f6d8 100644 (file)
@@ -847,7 +847,7 @@ static inline int mpeg4_decode_block(MpegEncContext * s, DCTELEM * block,
                               int n, int coded, int intra, int rvlc)
 {
     int level, i, last, run;
-    int dc_pred_dir;
+    int av_uninit(dc_pred_dir);
     RLTable * rl;
     RL_VLC_ELEM * rl_vlc;
     const uint8_t * scan_table;