On Fri, Feb 16, 2018 at 12:02 PM, Luca Barbato <[email protected]> wrote:

> Unbreaks the rate-control behaviour.
>

Same comment as for the x265 patch.
This seems to properly use x264 API.

---
>  libavcodec/libx264.c | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
> index 3dc53aaf38..b3f91a1f07 100644
> --- a/libavcodec/libx264.c
> +++ b/libavcodec/libx264.c
> @@ -573,8 +573,12 @@ FF_ENABLE_DEPRECATION_WARNINGS
>      x4->params.i_height         = avctx->height;
>      x4->params.vui.i_sar_width  = avctx->sample_aspect_ratio.num;
>      x4->params.vui.i_sar_height = avctx->sample_aspect_ratio.den;
> -    x4->params.i_fps_num = x4->params.i_timebase_den =
> avctx->time_base.den;
> -    x4->params.i_fps_den = x4->params.i_timebase_num =
> avctx->time_base.num;
> +
> +    x4->params.i_fps_num = avctx->framerate.num;
> +    x4->params.i_fps_den = avctx->framerate.den;
> +
> +    x4->params.i_timebase_num = avctx->time_base.num;
> +    x4->params.i_timebase_den = avctx->time_base.den;
>
>      x4->params.analyse.b_psnr = avctx->flags & AV_CODEC_FLAG_PSNR;
>
-- 
Vittorio
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to