diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-01-01 00:27:36 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-01 00:46:05 +0100 |
commit | ca0350f49b82663123f7fb4fddcafa7c874a96a4 (patch) | |
tree | 9836747316625fd44129c7895907b7fa9a79a1c0 /libavcodec | |
parent | 4478e9d8db65ca827f2b3ef3ef6ee806bffdba45 (diff) | |
download | ffmpeg-ca0350f49b82663123f7fb4fddcafa7c874a96a4.tar.gz |
mpegvideo: Do not error out on default values of thread_count.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 77e251e00c..7c584813e8 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -580,10 +580,10 @@ av_cold int MPV_encode_init(AVCodecContext *avctx) } if (s->avctx->thread_count < 1) { - av_log(avctx, AV_LOG_ERROR, + av_log(avctx, AV_LOG_INFO, "automatic thread number detection not supported by codec, " "patch welcome\n"); - return -1; + s->avctx->thread_count = 1; } if (s->avctx->thread_count > 1) |