mpeg1video: fix regression with slices != threads
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit a01679586cd9ac8470b81c0299fc7e13fd980d64)
This commit is contained in:
parent
e9ded2e1a9
commit
5f0e5b4048
@ -591,7 +591,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 (!avctx->time_base.den || !avctx->time_base.num) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user