[FFmpeg-cvslog] mpeg4videodec: Fix "warning: dc_pred_dir may be used uninitialized in this function"

Michael Niedermayer git at videolan.org
Sun Sep 9 03:37:23 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Sep  9 03:15:46 2012 +0200| [d48ebfbdea50d7f3a4e61e772b92960ff7b8d4ea] | committer: Michael Niedermayer

mpeg4videodec: Fix "warning: dc_pred_dir may be used uninitialized in this function"

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d48ebfbdea50d7f3a4e61e772b92960ff7b8d4ea
---

 libavcodec/mpeg4videodec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c
index aac1ca1..139f6d8 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;



More information about the ffmpeg-cvslog mailing list