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

Himangi Saraogi git at videolan.org
Wed Mar 25 15:51:48 CET 2015


ffmpeg | branch: master | Himangi Saraogi <himangi774 at gmail.com> | Wed Mar 25 19:20:16 2015 +0530| [b020a25df2349e198cf3d9dc71ad390171e23440] | committer: Michael Niedermayer

avcodec/j2kenc: Initialize variable to silence compiler warnings

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

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

 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),



More information about the ffmpeg-cvslog mailing list