<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 12, 2017 at 10:05 PM, <span dir="ltr"><<a href="mailto:gopi.satykrishna@multicorewareinc.com" target="_blank">gopi.satykrishna@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 Gopi Satykrishna Akisetty <<a href="mailto:gopi.satykrishna@multicorewareinc.com">gopi.satykrishna@<wbr>multicorewareinc.com</a>><br>
# Date 1491978866 -19800<br>
# Wed Apr 12 12:04:26 2017 +0530<br>
# Node ID 8e1f2e00dd9d2f7af2904f1774fc87<wbr>a254ee36ea<br>
# Parent 0b7d54dbb71a87a0c6514fee04a51c<wbr>4b29d5d704<br>
csv: print the correct value for BufferFill column in csv<br></blockquote><div><br></div><div>Pushed to default branch. Sorry for the delay.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
diff -r 0b7d54dbb71a -r 8e1f2e00dd9d source/encoder/ratecontrol.cpp<br>
--- a/source/encoder/ratecontrol.<wbr>cpp Wed Apr 12 19:01:00 2017 +0530<br>
+++ b/source/encoder/ratecontrol.<wbr>cpp Wed Apr 12 12:04:26 2017 +0530<br>
@@ -2550,25 +2550,25 @@<br>
m_bufferFillFinal = X265_MAX(m_bufferFillFinal, 0);<br>
m_bufferFillFinal += m_bufferRate;<br>
<br>
- if (m_bufferFillFinal > m_bufferSize)<br>
+ if (m_param->rc.bStrictCbr)<br>
{<br>
- if (m_param->rc.bStrictCbr)<br>
+ if (m_bufferFillFinal > m_bufferSize)<br>
{<br>
filler = (int)(m_bufferFillFinal - m_bufferSize);<br>
filler += FILLER_OVERHEAD * 8;<br>
- m_bufferFillFinal -= filler;<br>
- bufferBits = X265_MIN(bits + filler + m_bufferExcess, m_bufferRate);<br>
- m_bufferExcess = X265_MAX(m_bufferExcess - bufferBits + bits + filler, 0);<br>
- m_bufferFillActual += bufferBits - bits - filler;<br>
}<br>
- else<br>
- {<br>
- m_bufferFillFinal = X265_MIN(m_bufferFillFinal, m_bufferSize);<br>
- bufferBits = X265_MIN(bits + m_bufferExcess, m_bufferRate);<br>
- m_bufferExcess = X265_MAX(m_bufferExcess - bufferBits + bits, 0);<br>
- m_bufferFillActual += bufferBits - bits;<br>
- m_bufferFillActual = X265_MIN(m_bufferFillActual, m_bufferSize);<br>
- }<br>
+ m_bufferFillFinal -= filler;<br>
+ bufferBits = X265_MIN(bits + filler + m_bufferExcess, m_bufferRate);<br>
+ m_bufferExcess = X265_MAX(m_bufferExcess - bufferBits + bits + filler, 0);<br>
+ m_bufferFillActual += bufferBits - bits - filler;<br>
+ }<br>
+ else<br>
+ {<br>
+ m_bufferFillFinal = X265_MIN(m_bufferFillFinal, m_bufferSize);<br>
+ bufferBits = X265_MIN(bits + m_bufferExcess, m_bufferRate);<br>
+ m_bufferExcess = X265_MAX(m_bufferExcess - bufferBits + bits, 0);<br>
+ m_bufferFillActual += bufferBits - bits;<br>
+ m_bufferFillActual = X265_MIN(m_bufferFillActual, m_bufferSize);<br>
}<br>
return filler;<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>
</blockquote></div><br></div></div>