<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 26, 2017 at 1:01 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"><span class=""># HG changeset patch<br>
# User Bhavna Hariharan <<a href="mailto:bhavna@multicorewareinc.com">bhavna@multicorewareinc.com</a>><br>
# Date 1506344707 -19800<br>
# Mon Sep 25 18:35:07 2017 +0530<br>
</span># Node ID 0fb6bc88eb81b22ae1ec693f67b715<wbr>606025fe8d<br>
<span class=""># Parent f8ae7afc1f61ed0db3b2f23f5d5817<wbr>06fe6ed677<br>
fix multiple insertion of payloadSize into bitstream<br>
<br>
bitbucket issue #369<br></span></blockquote><div><br></div><div>Looks good. Will push into default branch</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
<br>
</span>diff -r f8ae7afc1f61 -r 0fb6bc88eb81 source/encoder/encoder.cpp<br>
<span class="">--- a/source/encoder/encoder.cpp Mon Sep 11 11:12:19 2017 +0530<br>
+++ b/source/encoder/encoder.cpp Mon Sep 25 18:35:07 2017 +0530<br>
@@ -631,12 +631,12 @@<br>
int32_t i = 0;<br>
toneMap.payloadSize = 0;<br>
while (m_cim[currentPOC][i] == 0xFF)<br>
- toneMap.payloadSize += m_cim[currentPOC][i++] + 1;<br>
- toneMap.payloadSize += m_cim[currentPOC][i] + 1;<br>
+ toneMap.payloadSize += m_cim[currentPOC][i++];<br>
+ toneMap.payloadSize += m_cim[currentPOC][i];<br>
<br>
toneMap.payload = (uint8_t*)x265_malloc(sizeof(<wbr>uint8_t) * toneMap.payloadSize);<br>
toneMap.payloadType = USER_DATA_REGISTERED_ITU_T_<wbr>T35;<br>
- memcpy(toneMap.payload, m_cim[currentPOC], toneMap.payloadSize);<br>
</span>+ memcpy(toneMap.payload, &m_cim[currentPOC][i+1], toneMap.payloadSize);<br>
}<br>
}<br>
#endif<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>