diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-15 00:32:01 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-15 01:43:14 +0200 |
commit | 5ef578d03a5555ad0d79403f5cf4b242211af679 (patch) | |
tree | 9d49761fa7310f763bf7541f26c218a2dd45a704 | |
parent | dd9400930a30929141fe63cee31ea47a7b6ed535 (diff) | |
download | ffmpeg-streaming-5ef578d03a5555ad0d79403f5cf4b242211af679.zip ffmpeg-streaming-5ef578d03a5555ad0d79403f5cf4b242211af679.tar.gz |
avcodec/jpeg2000dec: Also include remaining length in "Block length" error message
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/jpeg2000dec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c index da0a83a..7b1034e 100644 --- a/libavcodec/jpeg2000dec.c +++ b/libavcodec/jpeg2000dec.c @@ -915,8 +915,8 @@ static int jpeg2000_decode_packet(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile, || sizeof(cblk->data) < cblk->length + cblk->lengthinc[cwsno] + 4 ) { av_log(s->avctx, AV_LOG_ERROR, - "Block length %"PRIu16" or lengthinc %d is too large\n", - cblk->length, cblk->lengthinc[cwsno]); + "Block length %"PRIu16" or lengthinc %d is too large, left %d\n", + cblk->length, cblk->lengthinc[cwsno], bytestream2_get_bytes_left(&s->g)); return AVERROR_INVALIDDATA; } |