mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 22:25:36 +01:00
h263penc: fix multitheraded encoding
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user