Commit 0c6b0409 authored by Michael Niedermayer's avatar Michael Niedermayer

mpeg1enc: Disable threads for resolutions too large for multi-threading

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 89afa635
...@@ -145,6 +145,9 @@ static av_cold int encode_init(AVCodecContext *avctx) ...@@ -145,6 +145,9 @@ static av_cold int encode_init(AVCodecContext *avctx)
{ {
MpegEncContext *s = avctx->priv_data; MpegEncContext *s = avctx->priv_data;
if (avctx->codec_id == AV_CODEC_ID_MPEG1VIDEO && avctx->height > 2800)
avctx->thread_count = 1;
if(ff_MPV_encode_init(avctx) < 0) if(ff_MPV_encode_init(avctx) < 0)
return -1; return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment