[FFmpeg-cvslog] j2kdec: remove unused variables

Michael Niedermayer git at videolan.org
Wed May 29 20:12:58 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed May 29 19:57:03 2013 +0200| [ac025d6eca3274b9173aee3075a584cb9f3ec8ed] | committer: Michael Niedermayer

j2kdec: remove unused variables

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

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

 libavcodec/j2kdec.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/libavcodec/j2kdec.c b/libavcodec/j2kdec.c
index 39983cb..2f2b581 100644
--- a/libavcodec/j2kdec.c
+++ b/libavcodec/j2kdec.c
@@ -917,7 +917,7 @@ static void mct_decode(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile)
 static int decode_tile(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile)
 {
     int compno, reslevelno, bandno;
-    int x, y, *src[4];
+    int x, y;
     uint8_t *line;
     Jpeg2000T1Context t1;
 
@@ -933,7 +933,7 @@ static int decode_tile(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile)
             for (bandno = 0; bandno < rlevel->nbands; bandno++) {
                 int nb_precincts, precno;
                 Jpeg2000Band *band = rlevel->band + bandno;
-                int cblkx, cblky, cblkno=0, bandpos;
+                int cblkno=0, bandpos;
 
                 bandpos = bandno + (reslevelno > 0);
 
@@ -948,7 +948,6 @@ static int decode_tile(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile)
                     /* Loop on codeblocks */
                     for (cblkno = 0; cblkno < prec->nb_codeblocks_width * prec->nb_codeblocks_height; cblkno++) {
                         int x, y;
-                        int i, j;
                         Jpeg2000Cblk *cblk = prec->cblk + cblkno;
                         decode_cblk(s, codsty, &t1, cblk,
                                     cblk->coord[0][1] - cblk->coord[0][0],
@@ -969,7 +968,6 @@ static int decode_tile(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile)
         } /* end reslevel */
 
         ff_dwt_decode(&comp->dwt, comp->data);
-        src[compno] = comp->data;
     } /*end comp */
 
     /* inverse MCT transformation */



More information about the ffmpeg-cvslog mailing list