You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavc/libx264: add a warning when using qscale
This addresses ticket #3238. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
committed by
Michael Niedermayer
parent
6abc56e892
commit
f02832904d
@@ -330,6 +330,9 @@ static av_cold int X264_init(AVCodecContext *avctx)
|
|||||||
X264Context *x4 = avctx->priv_data;
|
X264Context *x4 = avctx->priv_data;
|
||||||
int sw,sh;
|
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);
|
x264_param_default(&x4->params);
|
||||||
|
|
||||||
x4->params.b_deblocking_filter = avctx->flags & CODEC_FLAG_LOOP_FILTER;
|
x4->params.b_deblocking_filter = avctx->flags & CODEC_FLAG_LOOP_FILTER;
|
||||||
|
Reference in New Issue
Block a user