mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
j2kdec: dont fail on non zero cblock style.
This allows decoding to continue a bit further for some files. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
58149303b3
commit
c1daf0723c
@ -285,8 +285,7 @@ static int get_cox(J2kDecoderContext *s, J2kCodingStyle *c)
|
|||||||
|
|
||||||
c->cblk_style = bytestream_get_byte(&s->buf);
|
c->cblk_style = bytestream_get_byte(&s->buf);
|
||||||
if (c->cblk_style != 0){ // cblk style
|
if (c->cblk_style != 0){ // cblk style
|
||||||
av_log(s->avctx, AV_LOG_ERROR, "no extra cblk styles supported\n");
|
av_log(s->avctx, AV_LOG_WARNING, "extra cblk styles %X\n", c->cblk_style);
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
c->transform = bytestream_get_byte(&s->buf); // transformation
|
c->transform = bytestream_get_byte(&s->buf); // transformation
|
||||||
if (c->csty & J2K_CSTY_PREC) {
|
if (c->csty & J2K_CSTY_PREC) {
|
||||||
|
Loading…
Reference in New Issue
Block a user