[FFmpeg-cvslog] mpeg1video: fix regression with slices != threads
Michael Niedermayer
git at videolan.org
Thu Dec 13 00:27:24 CET 2012
ffmpeg | branch: release/0.10 | Michael Niedermayer <michaelni at gmx.at> | Wed Dec 12 19:52:46 2012 +0100| [cdb376d77507d417be443d60d6dbc3960d5712d7] | committer: Carl Eugen Hoyos
mpeg1video: fix regression with slices != threads
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit a01679586cd9ac8470b81c0299fc7e13fd980d64)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cdb376d77507d417be443d60d6dbc3960d5712d7
---
libavcodec/mpegvideo_enc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index d143743..e289663 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -595,7 +595,7 @@ av_cold int 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) {
More information about the ffmpeg-cvslog
mailing list