diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c
index aac1ca129e2c9ad709c9882a6a477d606f693165..139f6d80daf80e98149ff287669ccf5d46d94971 100644
--- a/libavcodec/mpeg4videodec.c
+++ b/libavcodec/mpeg4videodec.c
@@ -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;