aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-26 13:33:10 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-26 13:57:56 +0200
commitc78f3e55717013f8092423b476806607108f7401 (patch)
tree3bc57011a3e840c6488a1b6c81af6e859aa4966b
parent81be0965e36297751db2ba21d8a2ccf19c096d6a (diff)
downloadffmpeg-c78f3e55717013f8092423b476806607108f7401.tar.gz
j2kdec: prog_order reading from jpeg2000dec
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/j2kdec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/j2kdec.c b/libavcodec/j2kdec.c
index f4b7e3e88b..c9322a5b71 100644
--- a/libavcodec/j2kdec.c
+++ b/libavcodec/j2kdec.c
@@ -330,9 +330,10 @@ static int get_cod(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c, uint8_t *p
tmp.csty = bytestream2_get_byteu(&s->g);
- if (bytestream2_get_byteu(&s->g)){ // progression level
+ // get progression order
+ tmp.prog_order = bytestream_get_byte(&s->g);
+ if (tmp.prog_order){
av_log(s->avctx, AV_LOG_ERROR, "only LRCP progression supported\n");
- return -1;
}
tmp.nlayers = bytestream2_get_be16u(&s->g);