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:
parent
4478e9d8db
commit
ca0350f49b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user