Revert "mpegvideo: Do not error out on default values of thread_count."
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 2 Jan 2012 02:10:52 +0000 (03:10 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 2 Jan 2012 02:10:52 +0000 (03:10 +0100)
This is not needed anymore.

This reverts commit ca0350f49b82663123f7fb4fddcafa7c874a96a4.

libavcodec/mpegvideo_enc.c

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