[FFmpeg-cvslog] j2kdec: fix used bytestream function

Michael Niedermayer git at videolan.org
Sun May 26 15:05:25 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun May 26 14:53:23 2013 +0200| [438c45c08a1f9f0e476d9e3edb1995da61192bce] | committer: Michael Niedermayer

j2kdec: fix used bytestream function

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

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

 libavcodec/j2kdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/j2kdec.c b/libavcodec/j2kdec.c
index 9a03d67..e2ec868 100644
--- a/libavcodec/j2kdec.c
+++ b/libavcodec/j2kdec.c
@@ -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");
     }



More information about the ffmpeg-cvslog mailing list