[FFmpeg-soc] [soc]: r971 - jpeg2000/j2kdec.c

k.nowosad subversion at mplayerhq.hu
Sat Aug 18 20:33:22 CEST 2007


Author: k.nowosad
Date: Sat Aug 18 20:33:22 2007
New Revision: 971

Log:
bugfix (bug appeared during decoding multi-layered images)


Modified:
   jpeg2000/j2kdec.c

Modified: jpeg2000/j2kdec.c
==============================================================================
--- jpeg2000/j2kdec.c	(original)
+++ jpeg2000/j2kdec.c	Sat Aug 18 20:33:22 2007
@@ -714,9 +714,10 @@ static int decode_packet(J2kDecoderConte
 
 static int decode_packets(J2kDecoderContext *s, J2kTile *tile)
 {
-    int layno, reslevelno, compno, precno, ok_reslevel = 1;
+    int layno, reslevelno, compno, precno, ok_reslevel;
     s->bit_index = 8;
     for (layno = 0; layno < tile->nlayers; layno++){
+        ok_reslevel = 1;
         for (reslevelno = 0; ok_reslevel; reslevelno++){
             ok_reslevel = 0;
             for (compno = 0; compno < s->ncomponents; compno++){



More information about the FFmpeg-soc mailing list