mpeg1video: fix regression with slices != threads
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit a01679586c
)
This commit is contained in:

committed by
Carl Eugen Hoyos

parent
6773269f4c
commit
cdb376d775
@@ -595,7 +595,7 @@ av_cold int 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 (!avctx->time_base.den || !avctx->time_base.num) {
|
if (!avctx->time_base.den || !avctx->time_base.num) {
|
||||||
|
Reference in New Issue
Block a user