forked from FFmpeg/FFmpeg
avcodec/mpeg12dec: Print position in end mismatch error
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
390703fcf5
commit
cb84c12fa2
1 changed files with 2 additions and 2 deletions
|
@ -1905,8 +1905,8 @@ static int mpeg_decode_slice(MpegEncContext *s, int mb_y,
|
||||||
if (left < 0 ||
|
if (left < 0 ||
|
||||||
(left && show_bits(&s->gb, FFMIN(left, 23)) && !is_d10) ||
|
(left && show_bits(&s->gb, FFMIN(left, 23)) && !is_d10) ||
|
||||||
((avctx->err_recognition & (AV_EF_BITSTREAM | AV_EF_AGGRESSIVE)) && left > 8)) {
|
((avctx->err_recognition & (AV_EF_BITSTREAM | AV_EF_AGGRESSIVE)) && left > 8)) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "end mismatch left=%d %0X\n",
|
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);
|
left, left>0 ? show_bits(&s->gb, FFMIN(left, 23)) : 0, s->mb_x, s->mb_y);
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
} else
|
} else
|
||||||
goto eos;
|
goto eos;
|
||||||
|
|
Loading…
Add table
Reference in a new issue