diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-05-01 01:26:03 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-05-01 01:43:06 +0200 |
commit | cb84c12fa2b8b7a1b25048bca7d937261890ba97 (patch) | |
tree | 79f4fc74c9873f230cfc6d3ff2dc3baff96c2a56 | |
parent | 390703fcf5cdd54e728f97499a0747a941330d45 (diff) | |
download | ffmpeg-cb84c12fa2b8b7a1b25048bca7d937261890ba97.tar.gz |
avcodec/mpeg12dec: Print position in end mismatch error
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/mpeg12dec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c index 4c96a1a01c..b861358159 100644 --- a/libavcodec/mpeg12dec.c +++ b/libavcodec/mpeg12dec.c @@ -1905,8 +1905,8 @@ static int mpeg_decode_slice(MpegEncContext *s, int mb_y, if (left < 0 || (left && show_bits(&s->gb, FFMIN(left, 23)) && !is_d10) || ((avctx->err_recognition & (AV_EF_BITSTREAM | AV_EF_AGGRESSIVE)) && left > 8)) { - av_log(avctx, AV_LOG_ERROR, "end mismatch left=%d %0X\n", - left, left>0 ? show_bits(&s->gb, FFMIN(left, 23)) : 0); + av_log(avctx, AV_LOG_ERROR, "end mismatch left=%d %0X at %d %d\n", + left, left>0 ? show_bits(&s->gb, FFMIN(left, 23)) : 0, s->mb_x, s->mb_y); return AVERROR_INVALIDDATA; } else goto eos; |