1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

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

This is not needed anymore.

This reverts commit ca0350f49b82663123f7fb4fddcafa7c874a96a4.
This commit is contained in:
Michael Niedermayer 2012-01-02 03:10:52 +01:00
parent 4121148388
commit 157f29f9a6

View File

@ -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)