Commit cb84c12f authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mpeg12dec: Print position in end mismatch error

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 390703fc
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment