Browse Source

avcodec/jpeg2000dec: Print warning if the mqc pointer mismatches at the end

If this occurs on valid and correctly decoded files it should be reduced to debug
level

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.8
Michael Niedermayer 10 years ago
parent
commit
6b08dc393b
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavcodec/jpeg2000dec.c

+ 5
- 0
libavcodec/jpeg2000dec.c View File

@@ -1392,6 +1392,11 @@ static int decode_cblk(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *codsty,
} }
pass_cnt ++; pass_cnt ++;
} }

if (cblk->data + cblk->length != t1->mqc.bp) {
av_log(s->avctx, AV_LOG_WARNING, "End mismatch %"PTRDIFF_SPECIFIER"\n", cblk->data + cblk->length - t1->mqc.bp);
}

return 0; return 0;
} }




Loading…
Cancel
Save