<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 3, 2017 at 7:12 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 1493793312 -19800<br>
# Wed May 03 12:05:12 2017 +0530<br>
# Node ID 5d5f40bf6268a0996d34bd3fbe3fe8<wbr>0cb7cf2899<br>
# Parent fd01abfc7898283922b34f7fcd9192<wbr>ddf9c7818a<br>
fixes encoder crash when userSEI is present (issue #340)<br></blockquote><div><br></div><div>Pushed to stable branch.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
diff -r fd01abfc7898 -r 5d5f40bf6268 source/encoder/encoder.cpp<br>
--- a/source/encoder/encoder.cpp Tue May 02 14:09:48 2017 -0700<br>
+++ b/source/encoder/encoder.cpp Wed May 03 12:05:12 2017 +0530<br>
@@ -708,7 +708,7 @@<br>
for (int i = 0; i < numPayloads; i++)<br>
{<br>
x265_sei_payload input;<br>
- if (i == (numPayloads - 1))<br>
+ if ((i == (numPayloads - 1)) && toneMapEnable)<br>
input = toneMap;<br>
else<br>
input = pic_in->userSEI.payloads[i];<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>