Quoting Mark Thompson (2017-01-08 00:06:14)
> ---
>  libavcodec/libx264.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
> index 3ccdb9393..ed387fff8 100644
> --- a/libavcodec/libx264.c
> +++ b/libavcodec/libx264.c
> @@ -412,6 +412,9 @@ static av_cold int X264_init(AVCodecContext *avctx)
>          } else if (x4->cqp >= 0) {
>              x4->params.rc.i_rc_method   = X264_RC_CQP;
>              x4->params.rc.i_qp_constant = x4->cqp;
> +        } else if (avctx->flags & AV_CODEC_FLAG_QSCALE) {
> +            x4->params.rc.i_rc_method   = X264_RC_CQP;
> +            x4->params.rc.i_qp_constant = avctx->global_quality;
>          }
>  
>          if (x4->crf_max >= 0)
> -- 
> 2.11.0
> _______________________________________________
> libav-devel mailing list
> [email protected]
> https://lists.libav.org/mailman/listinfo/libav-devel

Ok

-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to