diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-14 21:19:40 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-14 21:40:09 +0200 |
commit | 6b08dc393b5203c52c4d76a89e5c0bb12c134df7 (patch) | |
tree | 8edd19bce79980727c5164122c539cb1ba0c360f /libavcodec | |
parent | 2222f419da99ef85d49ab04e7e15b76612f4d054 (diff) | |
download | ffmpeg-6b08dc393b5203c52c4d76a89e5c0bb12c134df7.tar.gz |
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>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/jpeg2000dec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index 1a8ba3877b..de9aa6dbc6 100644 --- a/libavcodec/jpeg2000dec.c +++ b/libavcodec/jpeg2000dec.c @@ -1392,6 +1392,11 @@ static int decode_cblk(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *codsty, } 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; } |