lavc/libx264: add a warning when using qscale
authorJames Darnley <james.darnley@gmail.com>
Sat, 22 Mar 2014 08:48:52 +0000 (09:48 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 22 Mar 2014 12:13:07 +0000 (13:13 +0100)
This addresses ticket #3238.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/libx264.c

index 6007630..ebaf351 100644 (file)
@@ -330,6 +330,9 @@ static av_cold int X264_init(AVCodecContext *avctx)
     X264Context *x4 = avctx->priv_data;
     int sw,sh;
 
+    if (avctx->global_quality > 0)
+        av_log(avctx, AV_LOG_WARNING, "-qscale is ignored, -crf is recommended.\n");
+
     x264_param_default(&x4->params);
 
     x4->params.b_deblocking_filter         = avctx->flags & CODEC_FLAG_LOOP_FILTER;