1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-01-01 00:27:36 +01:00
parent 4478e9d8db
commit ca0350f49b

View File

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