diff options
author | James Darnley <james.darnley@gmail.com> | 2014-03-22 12:48:52 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-22 16:13:07 +0400 |
commit | f02832904dbce8e0473cdc9c7b09d92493b40a14 (patch) | |
tree | faf2971b59420c7eedd40fbef8a7d6106907f7df /libavcodec/libx264.c | |
parent | 6abc56e892c2c2500d1fc2698fa6d580b72f721b (diff) |
lavc/libx264: add a warning when using qscale
This addresses ticket #3238.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libx264.c')
-rw-r--r-- | libavcodec/libx264.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 60076301a6..ebaf351680 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -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; |