Merge commit '4cbd5ed11b0161a6a192174934b241e0cc0599a9'
* commit '4cbd5ed11b0161a6a192174934b241e0cc0599a9': jpeg2000: Fix compute precedence error in lut_gain index jpeg2000: Initialize code blocks structures in precincts to 0 jpeg2000: Check that we have enough components for MCT Conflicts: libavcodec/jpeg2000.c libavcodec/jpeg2000dec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
c7a092cb2d
@ -349,7 +349,9 @@ static int get_cod(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c,
|
||||
tmp.mct = bytestream2_get_byteu(&s->g); // multiple component transformation
|
||||
|
||||
if (tmp.mct && s->ncomponents < 3) {
|
||||
av_log(s->avctx, AV_LOG_ERROR, "MCT %d with too few components (%d)\n", tmp.mct, s->ncomponents);
|
||||
av_log(s->avctx, AV_LOG_ERROR,
|
||||
"MCT %d with too few components (%d)\n",
|
||||
tmp.mct, s->ncomponents);
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user