<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 18, 2017 at 10:22 AM, Divya Manivannan <span dir="ltr"><<a href="mailto:divya@multicorewareinc.com" target="_blank">divya@multicorewareinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Divya Manivannan <<a href="mailto:divya@multicorewareinc.com">divya@multicorewareinc.com</a>><br>
# Date 1513247221 -19800<br>
# Thu Dec 14 15:57:01 2017 +0530<br>
# Node ID 8cf56d46e0f916183082f8814d49e9<wbr>decb864cb3<br>
# Parent f09f3b4a21151de001fee2bb9e0e60<wbr>0c7b57fa39<br>
analysis: avoid creating analysis file when useanalysisFile option is disabled<br>
<br>
diff -r f09f3b4a2115 -r 8cf56d46e0f9 source/encoder/encoder.cpp<br>
--- a/source/encoder/encoder.cpp Tue Dec 12 18:04:04 2017 +0530<br>
+++ b/source/encoder/encoder.cpp Thu Dec 14 15:57:01 2017 +0530<br>
@@ -345,7 +345,7 @@<br>
<br>
initRefIdx();<br>
<br>
- if (m_param->analysisReuseMode)<br>
+ if (m_param->analysisReuseMode && m_param->bUseAnalysisFile)<br>
{<br>
const char* name = m_param-><wbr>analysisReuseFileName;<br>
if (!name)<br>
@@ -3248,7 +3248,8 @@<br>
static uint64_t consumedBytes = 0;<br>
static uint64_t totalConsumedBytes = 0;<br>
uint32_t depthBytes = 0;<br>
- fseeko(m_analysisFile, totalConsumedBytes, SEEK_SET);<br>
+ if (m_param->bUseAnalysisFile)<br>
+ fseeko(m_analysisFile, totalConsumedBytes, SEEK_SET);<br>
<br>
const x265_analysis_data *picData = &(picIn->analysisData);<br>
analysis_intra_data *intraPic = (analysis_intra_data *)picData->intraData;<br>
Pushed.<br>______________________________<wbr>_________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/<wbr>listinfo/x265-devel</a><br>
<br></blockquote></div><br></div></div>