summaryrefslogtreecommitdiffstats
path: root/libavcodec/jpeg2000dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-14 21:19:40 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-14 21:40:09 +0200
commit6b08dc393b5203c52c4d76a89e5c0bb12c134df7 (patch)
tree8edd19bce79980727c5164122c539cb1ba0c360f /libavcodec/jpeg2000dec.c
parent2222f419da99ef85d49ab04e7e15b76612f4d054 (diff)
downloadffmpeg-streaming-6b08dc393b5203c52c4d76a89e5c0bb12c134df7.zip
ffmpeg-streaming-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/jpeg2000dec.c')
-rw-r--r--libavcodec/jpeg2000dec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
index 1a8ba38..de9aa6d 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;
}
OpenPOWER on IntegriCloud