[x265] [PATCH] fixes encoder crash when userSEI is present (issue #340)

bhavna at multicorewareinc.com bhavna at multicorewareinc.com
Wed May 3 15:42:05 CEST 2017


# HG changeset patch
# User Bhavna Hariharan <bhavna at multicorewareinc.com>
# Date 1493793312 -19800
#      Wed May 03 12:05:12 2017 +0530
# Node ID 5d5f40bf6268a0996d34bd3fbe3fe80cb7cf2899
# Parent  fd01abfc7898283922b34f7fcd9192ddf9c7818a
fixes encoder crash when userSEI is present (issue #340)

diff -r fd01abfc7898 -r 5d5f40bf6268 source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp	Tue May 02 14:09:48 2017 -0700
+++ b/source/encoder/encoder.cpp	Wed May 03 12:05:12 2017 +0530
@@ -708,7 +708,7 @@
             for (int i = 0; i < numPayloads; i++)
             {
                 x265_sei_payload input;
-                if (i == (numPayloads - 1))
+                if ((i == (numPayloads - 1)) && toneMapEnable)
                     input = toneMap;
                 else
                     input = pic_in->userSEI.payloads[i];


More information about the x265-devel mailing list