mpegvideo: Do not error out on default values of thread_count.
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 31 Dec 2011 23:27:36 +0000 (00:27 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 31 Dec 2011 23:46:05 +0000 (00:46 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/mpegvideo_enc.c

index 77e251e..7c58481 100644 (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)