j2kdec: fix used bytestream function
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 26 May 2013 12:53:23 +0000 (14:53 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 26 May 2013 13:00:23 +0000 (15:00 +0200)
Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/j2kdec.c

index 9a03d67..e2ec868 100644 (file)
@@ -331,7 +331,7 @@ static int get_cod(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c, uint8_t *p
     tmp.csty = bytestream2_get_byteu(&s->g);
 
     // get progression order
-    tmp.prog_order = bytestream_get_byte(&s->g);
+    tmp.prog_order = bytestream2_get_byteu(&s->g);
     if (tmp.prog_order){
         av_log(s->avctx, AV_LOG_ERROR, "only LRCP progression supported\n");
     }