[FFmpeg-cvslog] Revert "mpegvideo: Do not error out on default values of thread_count."
Michael Niedermayer
git at videolan.org
Mon Jan 2 03:25:15 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jan 2 03:10:52 2012 +0100| [157f29f9a6b0214e979fbcfe39233908f558e4a9] | committer: Michael Niedermayer
Revert "mpegvideo: Do not error out on default values of thread_count."
This is not needed anymore.
This reverts commit ca0350f49b82663123f7fb4fddcafa7c874a96a4.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=157f29f9a6b0214e979fbcfe39233908f558e4a9
---
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 7c58481..77e251e 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_INFO,
+ av_log(avctx, AV_LOG_ERROR,
"automatic thread number detection not supported by codec, "
"patch welcome\n");
- s->avctx->thread_count = 1;
+ return -1;
}
if (s->avctx->thread_count > 1)
More information about the ffmpeg-cvslog
mailing list