[x265] [PATCH 5 of 5] dhdr10-info: notify error when file not found

bhavna at multicorewareinc.com bhavna at multicorewareinc.com
Thu Apr 20 07:47:02 CEST 2017


# HG changeset patch
# User Bhavna Hariharan <bhavna at multicorewareinc.com>
# Date 1492666682 -19800
#      Thu Apr 20 11:08:02 2017 +0530
# Node ID 2c6e6c9c3da72aaddb33565d7031918fb5a37097
# Parent  8dbdf0b6a8ff6972136313a0199a0016948bb430
dhdr10-info: notify error when file not found

diff -r 8dbdf0b6a8ff -r 2c6e6c9c3da7 source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp	Wed Apr 19 16:40:23 2017 -0700
+++ b/source/encoder/encoder.cpp	Thu Apr 20 11:08:02 2017 +0530
@@ -2237,9 +2237,10 @@
     {
         if (!x265_fopen(p->toneMapFile, "r"))
         {
-            x265_log(p, X265_LOG_WARNING, "Unable to open tone-map file. Disabling --dhdr10-info\n");
+            x265_log(p, X265_LOG_ERROR, "Unable to open tone-map file.\n");
             m_bToneMap = 0;
             m_param->toneMapFile = NULL;
+            m_aborted = true;
         }
         else
             m_bToneMap = 1;


More information about the x265-devel mailing list