From b020a25df2349e198cf3d9dc71ad390171e23440 Mon Sep 17 00:00:00 2001 From: Himangi Saraogi Date: Wed, 25 Mar 2015 19:02:16 +0530 Subject: [PATCH] avcodec/j2kenc: Initialize variable to silence compiler warnings Signed-off-by: Michael Niedermayer --- libavcodec/j2kenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/j2kenc.c b/libavcodec/j2kenc.c index ddb0b686cb..a795e03b89 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),