mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/jpeg2000dec: Fix term_cnt check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
918abc19ff
commit
36241c4055
@ -1389,7 +1389,7 @@ static int decode_cblk(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *codsty,
|
||||
ff_mqc_init_contexts(&t1->mqc);
|
||||
|
||||
if (passno && (coder_type = needs_termination(codsty->cblk_style, pass_cnt))) {
|
||||
if (term_cnt > cblk->nb_terminations) {
|
||||
if (term_cnt >= cblk->nb_terminations) {
|
||||
av_log(s->avctx, AV_LOG_ERROR, "Missing needed termination \n");
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user