[x265] [PATCH] encoder: Do not include CLL SEI message if empty

Vittorio Giovara vittorio.giovara at gmail.com
Thu Nov 1 22:34:42 CET 2018


Some devices render out-of-luminance pixels incorrectly otherwise.

---
 source/encoder/encoder.cpp | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff -r fd517ae68f93 source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp    Tue Sep 25 16:02:31 2018 +0530
+++ b/source/encoder/encoder.cpp    Thu Nov 01 17:27:51 2018 -0400
@@ -2381,10 +2381,13 @@

     if (m_param->bEmitHDRSEI)
     {
-        SEIContentLightLevel cllsei;
-        cllsei.max_content_light_level = m_param->maxCLL;
-        cllsei.max_pic_average_light_level = m_param->maxFALL;
-        cllsei.writeSEImessages(bs, m_sps, NAL_UNIT_PREFIX_SEI, list,
m_param->bSingleSeiNal);
+        if (m_emitCLLSEI)
+        {
+            SEIContentLightLevel cllsei;
+            cllsei.max_content_light_level = m_param->maxCLL;
+            cllsei.max_pic_average_light_level = m_param->maxFALL;
+            cllsei.writeSEImessages(bs, m_sps, NAL_UNIT_PREFIX_SEI, list,
m_param->bSingleSeiNal);
+        }

         if (m_param->masteringDisplayColorVolume)
         {
-- 
Vittorio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20181101/655eadeb/attachment.html>


More information about the x265-devel mailing list