avcodec/jpeg2000dec: Implement "Reset context probabilities on coding pass boundaries"
No testcase with just this feature known Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
20abb1afe5
commit
4a3bc0d9a5
@ -1335,6 +1335,9 @@ static int decode_cblk(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *codsty,
|
||||
vert_causal_ctx_csty_symbol);
|
||||
break;
|
||||
}
|
||||
if (codsty->cblk_style & JPEG2000_CBLK_RESET) // XXX no testcase for just this
|
||||
ff_mqc_init_contexts(&t1->mqc);
|
||||
|
||||
if ((coder_type = needs_termination(codsty->cblk_style, pass_cnt))) {
|
||||
if (term_cnt >= cblk->nb_terminations) {
|
||||
av_log(s->avctx, AV_LOG_ERROR, "Missing needed termination \n");
|
||||
|
Loading…
Reference in New Issue
Block a user