[x265] [PATCH] Fix a zonefile issue for Ultrafast and Superfast Preset
Karam Singh
karam.singh at multicorewareinc.com
Mon Aug 7 05:35:04 UTC 2023
>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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20230807/03ea41b1/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fix_a_zonefile_crash_for_Ultrafast_and_Superfast_Preset.diff
Type: application/octet-stream
Size: 900 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20230807/03ea41b1/attachment.obj>
More information about the x265-devel
mailing list