Commit ca0350f4 authored by Michael Niedermayer's avatar Michael Niedermayer

mpegvideo: Do not error out on default values of thread_count.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4478e9d8
...@@ -580,10 +580,10 @@ av_cold int MPV_encode_init(AVCodecContext *avctx) ...@@ -580,10 +580,10 @@ av_cold int MPV_encode_init(AVCodecContext *avctx)
} }
if (s->avctx->thread_count < 1) { 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, " "automatic thread number detection not supported by codec, "
"patch welcome\n"); "patch welcome\n");
return -1; s->avctx->thread_count = 1;
} }
if (s->avctx->thread_count > 1) if (s->avctx->thread_count > 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