[x265] [PATCH] Reconfigure csvfpt if encoder param is null

aasaipriya at multicorewareinc.com aasaipriya at multicorewareinc.com
Tue Jan 2 07:52:35 CET 2018


# HG changeset patch
# User Aasaipriya Chandran <aasaipriya at multicorewareinc.com>
# Date 1514381756 -19800
#      Wed Dec 27 19:05:56 2017 +0530
# Branch stable
# Node ID 4303e6796c9fab8cd7a986acb8669bb3e0227d07
# Parent  2e684b80d90fac3d674fbbcd4b41572e4337b736
Reconfigure csvfpt if encoder param is null

diff -r 2e684b80d90f -r 4303e6796c9f source/encoder/api.cpp
--- a/source/encoder/api.cpp	Thu Dec 07 10:59:12 2017 +0530
+++ b/source/encoder/api.cpp	Wed Dec 27 19:05:56 2017 +0530
@@ -195,6 +195,8 @@
 
     x265_param save;
     Encoder* encoder = static_cast<Encoder*>(enc);
+    if (encoder->m_param->csvfn == NULL && param_in->csvfpt != NULL)
+         encoder->m_param->csvfpt = param_in->csvfpt;
     if (encoder->m_latestParam->forceFlush != param_in->forceFlush)
         return encoder->reconfigureParam(encoder->m_latestParam, param_in);
     bool isReconfigureRc = encoder->isReconfigureRc(encoder->m_latestParam, param_in);


More information about the x265-devel mailing list