1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-10-05 01:51:53 +02:00

mpeg1video: fix regression with slices != threads

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-12-12 19:52:46 +01:00
parent 03df972016
commit a01679586c

View File

@ -637,7 +637,7 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx)
return -1;
}
if (s->avctx->thread_count > 1)
if (s->avctx->slices > 1 || s->avctx->thread_count > 1)
s->rtp_mode = 1;
if (s->avctx->thread_count > 1 && s->codec_id == AV_CODEC_ID_H263P)