[FFmpeg-cvslog] h263penc: fix multitheraded encoding
Michael Niedermayer
git at videolan.org
Wed Aug 15 22:18:08 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Aug 15 22:14:24 2012 +0200| [e8c402201898b3f5373996256cb75ef1829b90d4] | committer: Michael Niedermayer
h263penc: fix multitheraded encoding
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e8c402201898b3f5373996256cb75ef1829b90d4
---
libavcodec/mpegvideo_enc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index a8feeb6..6798061 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -594,6 +594,9 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx)
if (s->avctx->thread_count > 1)
s->rtp_mode = 1;
+ if (s->avctx->thread_count > 1 && s->codec_id == AV_CODEC_ID_H263P)
+ s->h263_slice_structured = 1;
+
if (!avctx->time_base.den || !avctx->time_base.num) {
av_log(avctx, AV_LOG_ERROR, "framerate not set\n");
return -1;
More information about the ffmpeg-cvslog
mailing list