diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-08-15 22:14:24 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-08-15 22:14:24 +0200 |
commit | e8c402201898b3f5373996256cb75ef1829b90d4 (patch) | |
tree | 1743357befafb25f9ca15fff7762d96fe14bdfd0 /libavcodec/mpegvideo_enc.c | |
parent | e2c54d4d72d3a94fab55067056be8c55f6b6c3e5 (diff) | |
download | ffmpeg-streaming-e8c402201898b3f5373996256cb75ef1829b90d4.zip ffmpeg-streaming-e8c402201898b3f5373996256cb75ef1829b90d4.tar.gz |
h263penc: fix multitheraded encoding
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |