[x265] [PATCH] Fix a zonefile issue for Ultrafast and Superfast Preset

Mahesh Pittala mahesh at multicorewareinc.com
Thu Aug 24 11:12:55 UTC 2023


Pushed to the master and Release_3.5 branches

On Mon, Aug 7, 2023 at 11:05 AM Karam Singh <
karam.singh at multicorewareinc.com> wrote:

> From c4b8ef549e355b03c2e55efe35b473e2e8a877f7 Mon Sep 17 00:00:00 2001
> From: Karam Singh <karam.singh at multicorewareinc.com>
> Date: Tue, 18 Jul 2023 16:27:09 +0530
> Subject: [PATCH] Fix a zonefile crash for Ultrafast & Superfast Preset
>
> ---
>  source/encoder/encoder.cpp | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/source/encoder/encoder.cpp b/source/encoder/encoder.cpp
> index c2dd6f4e8..8ec01bebe 100644
> --- a/source/encoder/encoder.cpp
> +++ b/source/encoder/encoder.cpp
> @@ -3506,6 +3506,11 @@ void Encoder::configureZone(x265_param *p,
> x265_param *zone)
>              p->rc.aqMode = X265_AQ_NONE;
>              p->rc.hevcAq = 0;
>          }
> +        if (p->rc.aqMode == 0 && p->rc.cuTree)
> +        {
> +            p->rc.aqMode = X265_AQ_VARIANCE;
> +            p->rc.aqStrength = 0;
> +        }
>          p->radl = zone->radl;
>      }
>      memcpy(zone, p, sizeof(x265_param));
> --
> 2.36.0.windows.1
>
>
> Karam Singh
> Senior Video Codec Engineer
> MulticoreWare, India
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20230824/a9a0ca50/attachment-0001.htm>


More information about the x265-devel mailing list