diff --git a/libavcodec/h264.c b/libavcodec/h264.c index adb01d4a5e..0940335edf 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -3539,7 +3539,9 @@ static int decode_slice(struct AVCodecContext *avctx, void *arg){ return 0; }else{ - ff_er_add_slice(s, s->resync_mb_x, s->resync_mb_y, s->mb_x, s->mb_y, (AC_END|DC_END|MV_END)&part_mask); + ff_er_add_slice(s, s->resync_mb_x, s->resync_mb_y, + s->mb_x - 1, s->mb_y, + (AC_END|DC_END|MV_END)&part_mask); return -1; }