diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-14 03:28:07 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-14 03:38:41 +0200 |
commit | 4a3bc0d9a5a0d3cab1e4e062130821a3ec1f800e (patch) | |
tree | 323764e12ca935b10df7c9fcc857cdb8ea9406cd /libavcodec | |
parent | 20abb1afe5d7c4d51172f19e99a82ada505c9039 (diff) |
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>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/jpeg2000dec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index f4df5c9a4c..8eb1d82436 100644 --- a/libavcodec/jpeg2000dec.c +++ b/libavcodec/jpeg2000dec.c @@ -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"); |