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

jai_menon subversion at mplayerhq.hu
Wed Aug 12 22:26:22 CEST 2009


Author: jai_menon
Date: Wed Aug 12 22:26:22 2009
New Revision: 5052

Log:
Fix parsing of COC|COD markers based on bitstream coding style.

Modified:
   jpeg2000/j2kdec.c

Modified: jpeg2000/j2kdec.c
==============================================================================
--- jpeg2000/j2kdec.c	Wed Aug 12 22:20:12 2009	(r5051)
+++ jpeg2000/j2kdec.c	Wed Aug 12 22:26:22 2009	(r5052)
@@ -289,6 +289,11 @@ static int get_cox(J2kDecoderContext *s,
         return -1;
     }
     c->transform = bytestream_get_byte(&s->buf); // transformation
+    if (c->csty & J2K_CSTY_PREC) {
+        int i;
+        for (i = 0; i < c->nreslevels; i++)
+            bytestream_get_byte(&s->buf);
+    }
     return 0;
 }
 


More information about the FFmpeg-soc mailing list