[x265] [PATCH] analysis: avoid creating analysis file when useanalysisFile option is disabled

Divya Manivannan divya at multicorewareinc.com
Mon Dec 18 05:52:44 CET 2017


# HG changeset patch
# User Divya Manivannan <divya at multicorewareinc.com>
# Date 1513247221 -19800
#      Thu Dec 14 15:57:01 2017 +0530
# Node ID 8cf56d46e0f916183082f8814d49e9decb864cb3
# Parent  f09f3b4a21151de001fee2bb9e0e600c7b57fa39
analysis: avoid creating analysis file when useanalysisFile option is disabled

diff -r f09f3b4a2115 -r 8cf56d46e0f9 source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp	Tue Dec 12 18:04:04 2017 +0530
+++ b/source/encoder/encoder.cpp	Thu Dec 14 15:57:01 2017 +0530
@@ -345,7 +345,7 @@
 
     initRefIdx();
 
-    if (m_param->analysisReuseMode)
+    if (m_param->analysisReuseMode && m_param->bUseAnalysisFile)
     {
         const char* name = m_param->analysisReuseFileName;
         if (!name)
@@ -3248,7 +3248,8 @@
     static uint64_t consumedBytes = 0;
     static uint64_t totalConsumedBytes = 0;
     uint32_t depthBytes = 0;
-    fseeko(m_analysisFile, totalConsumedBytes, SEEK_SET);
+    if (m_param->bUseAnalysisFile)
+        fseeko(m_analysisFile, totalConsumedBytes, SEEK_SET);
 
     const x265_analysis_data *picData = &(picIn->analysisData);
     analysis_intra_data *intraPic = (analysis_intra_data *)picData->intraData;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x265-clone.patch
Type: text/x-patch
Size: 1186 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20171218/007d230b/attachment.bin>


More information about the x265-devel mailing list