[FFmpeg-cvslog] mpeg1video: fix regression with slices != threads
Michael Niedermayer
git at videolan.org
Thu Dec 13 00:27:26 CET 2012
ffmpeg | branch: release/0.11 | Michael Niedermayer <michaelni at gmx.at> | Wed Dec 12 19:52:46 2012 +0100| [5f0e5b4048f5f67856a1b46499c4207ebcc42717] | 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=5f0e5b4048f5f67856a1b46499c4207ebcc42717
---
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 12c507a..56dd2d8 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -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) {
More information about the ffmpeg-cvslog
mailing list