Commit 157f29f9 authored by Michael Niedermayer's avatar Michael Niedermayer

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

This is not needed anymore.

This reverts commit ca0350f4.
parent 41211483
...@@ -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_INFO, av_log(avctx, AV_LOG_ERROR,
"automatic thread number detection not supported by codec, " "automatic thread number detection not supported by codec, "
"patch welcome\n"); "patch welcome\n");
s->avctx->thread_count = 1; return -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