[x265] [PATCH] analysis: Fix crash when rd-refine is enabled with analysis-reuse-level 10 save

bhavna at multicorewareinc.com bhavna at multicorewareinc.com
Wed Jun 13 12:12:40 CEST 2018


# HG changeset patch
# User Bhavna Hariharan <bhavna at multicorewareinc.com>
# Date 1528863867 -19800
#      Wed Jun 13 09:54:27 2018 +0530
# Node ID 1cd6be817c5f85287910bfec751c262ca8f1a6ec
# Parent  3bde7d26383f5d8ca652c4db4a7c4a61d6b45589
analysis: Fix crash when rd-refine is enabled with analysis-reuse-level 10 save
encode

diff -r 3bde7d26383f -r 1cd6be817c5f source/encoder/analysis.cpp
--- a/source/encoder/analysis.cpp	Wed Jun 13 13:53:30 2018 +0530
+++ b/source/encoder/analysis.cpp	Wed Jun 13 09:54:27 2018 +0530
@@ -2453,7 +2453,7 @@
             for (uint32_t part = 0; part < numPU; part++)
             {
                 PredictionUnit pu(mode.cu, cuGeom, part);
-                if (m_param->analysisReuseLevel >= 7)
+                if ((m_param->analysisLoad && m_param->analysisReuseLevel == 10) || (m_param->bMVType == AVC_INFO && m_param->analysisReuseLevel >= 7))
                 {
                     analysis_inter_data* interDataCTU = (analysis_inter_data*)m_frame->m_analysisData.interData;
                     int cuIdx = (mode.cu.m_cuAddr * parentCTU.m_numPartitions) + cuGeom.absPartIdx;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x265-clone.patch
Type: text/x-patch
Size: 1120 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20180613/798954ba/attachment.bin>


More information about the x265-devel mailing list