[FFmpeg-cvslog] flacdec: silence several "warning: X may be used uninitialized in this function"

Michael Niedermayer git at videolan.org
Mon Feb 4 23:05:54 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Feb  4 22:50:16 2013 +0100| [fc0d069feb690db8d36cb7bcec62891f160d250a] | committer: Michael Niedermayer

flacdec: silence several "warning: X 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=fc0d069feb690db8d36cb7bcec62891f160d250a
---

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

diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c
index eb75729..0e887e6 100644
--- a/libavcodec/flacdec.c
+++ b/libavcodec/flacdec.c
@@ -254,7 +254,7 @@ static int decode_subframe_fixed(FLACContext *s, int32_t *decoded,
                                  int pred_order, int bps)
 {
     const int blocksize = s->blocksize;
-    int a, b, c, d, i;
+    int av_uninit(a), av_uninit(b), av_uninit(c), av_uninit(d), i;
 
     /* warm up samples */
     for (i = 0; i < pred_order; i++) {



More information about the ffmpeg-cvslog mailing list