[x265] [PATCH] Fix condition check for single-sei

santhoshini at multicorewareinc.com santhoshini at multicorewareinc.com
Tue Apr 3 10:41:35 CEST 2018


# HG changeset patch
# User Santhoshini Sekar <santhoshini at multicorewareinc.com>
# Date 1522744817 -19800
#      Tue Apr 03 14:10:17 2018 +0530
# Node ID 2d95d7ec545ef3d57e7a57ac484f27c81f7be0e5
# Parent  2bbff45f761fdd9fb22495587640355432dc45bc
Fix condition check for single-sei

diff --git a/source/common/param.cpp b/source/common/param.cpp
--- a/source/common/param.cpp
+++ b/source/common/param.cpp
@@ -1386,11 +1386,11 @@
 
     bool isSingleSEI = ((param->bEmitHRDSEI || param->bEmitInfoSEI || param->decodedPictureHashSEI ||
                          param->masteringDisplayColorVolume || param->maxCLL || param->maxFALL || 
-                         param->bEmitHDRSEI || param->bEmitIDRRecoverySEI) && param->bSingleSeiNal);
-    if (!isSingleSEI)
+                         param->bEmitHDRSEI || param->bEmitIDRRecoverySEI));
+    if (!isSingleSEI && param->bSingleSeiNal)
     {
         param->bSingleSeiNal = 0;
-        x265_log(param, X265_LOG_WARNING, "None of the SEI messages are enabled. Diabling Single SEI NAL\n");
+        x265_log(param, X265_LOG_WARNING, "None of the SEI messages are enabled. Disabling Single SEI NAL\n");
     }
     return check_failed;
 }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x265.patch
Type: text/x-patch
Size: 1185 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20180403/de1a51eb/attachment.bin>


More information about the x265-devel mailing list