diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-20 04:14:09 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-20 04:14:09 +0100 |
commit | 0c6b0409af070a3bfb02b55fde8ba18219edc76b (patch) | |
tree | 2362a3a42d8a12cb6c70bdd5fba483ced61dc5f5 /libavcodec/mpeg12enc.c | |
parent | 89afa635bf101e881ef7f70659f555806fdeae28 (diff) | |
download | ffmpeg-0c6b0409af070a3bfb02b55fde8ba18219edc76b.tar.gz |
mpeg1enc: Disable threads for resolutions too large for multi-threading
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpeg12enc.c')
-rw-r--r-- | libavcodec/mpeg12enc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mpeg12enc.c b/libavcodec/mpeg12enc.c index cda1464c86..f2b5c05f0d 100644 --- a/libavcodec/mpeg12enc.c +++ b/libavcodec/mpeg12enc.c @@ -145,6 +145,9 @@ static av_cold int encode_init(AVCodecContext *avctx) { 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) return -1; |