[FFmpeg-cvslog] mpegvideo: Do not error out on default values of thread_count.
Michael Niedermayer
git at videolan.org
Sun Jan 1 02:49:37 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jan 1 00:27:36 2012 +0100| [ca0350f49b82663123f7fb4fddcafa7c874a96a4] | committer: Michael Niedermayer
mpegvideo: Do not error out on default values of thread_count.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ca0350f49b82663123f7fb4fddcafa7c874a96a4
---
libavcodec/mpegvideo_enc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 77e251e..7c58481 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -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)
More information about the ffmpeg-cvslog
mailing list