[FFmpeg-devel] [PATCH] avcodec/j2kenc: Initialize variable to silence compiler warnings

Himangi Saraogi himangi774 at gmail.com
Wed Mar 25 14:32:16 CET 2015


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

diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c
index ddb0b68..a795e03 100644
--- a/libavcodec/j2kenc.c
+++ b/libavcodec/j2kenc.c
@@ -430,7 +430,7 @@ static void init_quantization(Jpeg2000EncoderContext *s)
             int nbands, lev = codsty->nreslevels - reslevelno - 1;
             nbands = reslevelno ? 3 : 1;
             for (bandno = 0; bandno < nbands; bandno++, gbandno++){
-                int expn, mant;
+                int expn, mant = 0;
 
                 if (codsty->transform == FF_DWT97_INT){
                     int bandpos = bandno + (reslevelno>0),
-- 
1.9.1



More information about the ffmpeg-devel mailing list