aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-12-12 19:52:46 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2012-12-13 00:15:52 +0100
commit553c9c77ccd71a57732fc08c84b185f8e0d82cc7 (patch)
treef81947c25b73ccac96c98cf8990356b3c62ea5e5
parentf44c73f5bbeba178764b801b7b141c494e8753d3 (diff)
downloadffmpeg-553c9c77ccd71a57732fc08c84b185f8e0d82cc7.tar.gz
mpeg1video: fix regression with slices != threads
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit a01679586cd9ac8470b81c0299fc7e13fd980d64)
-rw-r--r--libavcodec/mpegvideo_enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index ab5f12a8dc..7d7672b7c4 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -632,7 +632,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)