Commit a0167958 authored by Michael Niedermayer's avatar Michael Niedermayer

mpeg1video: fix regression with slices != threads

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 03df9720
...@@ -637,7 +637,7 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) ...@@ -637,7 +637,7 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx)
return -1; return -1;
} }
if (s->avctx->thread_count > 1) if (s->avctx->slices > 1 || s->avctx->thread_count > 1)
s->rtp_mode = 1; s->rtp_mode = 1;
if (s->avctx->thread_count > 1 && s->codec_id == AV_CODEC_ID_H263P) if (s->avctx->thread_count > 1 && s->codec_id == AV_CODEC_ID_H263P)
......
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