[x265] [PATCH] Fix: Mac build error while EXPORT_C_API disabled

aasaipriya at multicorewareinc.com aasaipriya at multicorewareinc.com
Thu Jul 6 12:08:45 CEST 2017


# HG changeset patch
# User Aasaipriya Chandran <aasaipriya at multicorewareinc.com>
# Date 1499332142 -19800
#      Thu Jul 06 14:39:02 2017 +0530
# Node ID 95065d680f3220a5488ae44683bd72fa3ca0e86a
# Parent  006c75cf822e92e3865fc97d21c25b0fdc072b51
Fix: Mac build error while EXPORT_C_API disabled

diff -r 006c75cf822e -r 95065d680f32 source/encoder/api.cpp
--- a/source/encoder/api.cpp	Thu Jun 22 10:25:03 2017 +0530
+++ b/source/encoder/api.cpp	Thu Jul 06 14:39:02 2017 +0530
@@ -295,7 +295,8 @@
         int padx = encoder->m_sps.conformanceWindow.rightOffset;
         int pady = encoder->m_sps.conformanceWindow.bottomOffset;
         encoder->fetchStats(&stats, sizeof(stats));
-        x265_csvlog_encode(encoder->m_param->csvfpt, x265_version_str, *encoder->m_param, padx, pady, stats, encoder->m_param->csvLogLevel, argc, argv);
+        const x265_api * api = x265_api_get(0);
+        x265_csvlog_encode(encoder->m_param->csvfpt, api->version_str, *encoder->m_param, padx, pady, stats, encoder->m_param->csvLogLevel, argc, argv);
     }
 }
 


More information about the x265-devel mailing list