<div dir="ltr">Please ignore this, I shall resend an updated patch. </div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><br>Regards,<br><br>Bhavna Hariharan<br></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Sep 25, 2017 at 6:42 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 1506344707 -19800<br>
# Mon Sep 25 18:35:07 2017 +0530<br>
# Node ID 3296d54f8b38c3b9fe03f8a211c4ee<wbr>3b624c0216<br>
# Parent f8ae7afc1f61ed0db3b2f23f5d5817<wbr>06fe6ed677<br>
fix multiple insertion of payloadSize into bitstream<br>
<br>
bitbucket issue #369<br>
<br>
diff -r f8ae7afc1f61 -r 3296d54f8b38 source/encoder/encoder.cpp<br>
--- 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>
+ memcpy(toneMap.payload, &m_cim[currentPOC][1], toneMap.payloadSize);<br>
}<br>
}<br>
#endif<br>
</blockquote></div><br></div>