<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 29, 2018 at 7:25 PM, <span dir="ltr"><<a href="mailto:bhavna@multicorewareinc.com" target="_blank">bhavna@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 Bhavna Hariharan <<a href="mailto:bhavna@multicorewareinc.com">bhavna@multicorewareinc.com</a>><br>
# Date 1527601396 -19800<br>
# Tue May 29 19:13:16 2018 +0530<br>
# Node ID 2d1fd0bb3a627842c490cbd86159f0<wbr>9472f98153<br>
# Parent 9db5be89d74cc55cd6aff30c2a5761<wbr>19ca09d8a1<br>
fix build warnings in Linux<br>
<br>
diff -r 9db5be89d74c -r 2d1fd0bb3a62 source/encoder/encoder.cpp<br>
--- a/source/encoder/encoder.cpp Tue May 29 12:50:04 2018 +0530<br>
+++ b/source/encoder/encoder.cpp Tue May 29 19:13:16 2018 +0530<br>
@@ -3408,16 +3408,16 @@<br>
allocAnalysis(analysis);<br>
if (m_param->bDisableLookahead && m_rateControl->m_isVbv)<br>
{<br>
- int vbvCount = m_param->lookaheadDepth + m_param->bframes + 2;<br>
+ uint64_t vbvCount = m_param->lookaheadDepth + m_param->bframes + 2;<br>
X265_FREAD(analysis-><wbr>lookahead.intraVbvCost, sizeof(uint32_t), analysis->numCUsInFrame, m_analysisFileIn, picData->lookahead.<wbr>intraVbvCost);<br>
X265_FREAD(analysis-><wbr>lookahead.vbvCost, sizeof(uint32_t), analysis->numCUsInFrame, m_analysisFileIn, picData->lookahead.vbvCost);<br>
X265_FREAD(analysis-><wbr>lookahead.satdForVbv, sizeof(uint32_t), analysis->numCuInHeight, m_analysisFileIn, picData->lookahead.satdForVbv)<wbr>;<br>
X265_FREAD(analysis-><wbr>lookahead.intraSatdForVbv, sizeof(uint32_t), analysis->numCuInHeight, m_analysisFileIn, picData->lookahead.<wbr>intraSatdForVbv);<br>
- X265_FREAD(analysis-><wbr>lookahead.plannedSatd, sizeof(int64_t), vbvCount, m_analysisFileIn, picData->lookahead.<wbr>plannedSatd);<br>
+ X265_FREAD(analysis-><wbr>lookahead.plannedSatd, sizeof(uint64_t), vbvCount, m_analysisFileIn, picData->lookahead.<wbr>plannedSatd);<br>
<br>
if (m_param->scaleFactor)<br>
{<br>
- for (int index = 0; index < vbvCount; index++)<br>
+ for (uint64_t index = 0; index < vbvCount; index++)<br>
analysis->lookahead.<wbr>plannedSatd[index] *= factor;<br>
<br>
for (uint32_t i = 0; i < analysis->numCuInHeight; i++)<br>
<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 class="gmail_extra">Pushed.</div></div>