# HG changeset patch
# User Pooja Venkatesan <[email protected]>
# Date 1553576501 -19800
# Tue Mar 26 10:31:41 2019 +0530
# Node ID 39b35ea862834f05e7437e1670e55de595c8f875
# Parent 4217e691387cdeb6569846d5942422fec3126528
zone: Fix reconfiguration of RC param
diff -r 4217e691387c -r 39b35ea86283 source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp Mon May 06 15:54:01 2019 +0530
+++ b/source/encoder/encoder.cpp Tue Mar 26 10:31:41 2019 +0530
@@ -1641,7 +1641,7 @@
int Encoder::reconfigureParam(x265_param* encParam, x265_param* param)
{
- if (isReconfigureRc(encParam, param))
+ if (isReconfigureRc(encParam, param) && !param->rc.zonefileCount)
{
/* VBV can't be turned ON if it wasn't ON to begin with and can't be
turned OFF if it was ON to begin with*/
if (param->rc.vbvMaxBitrate > 0 && param->rc.vbvBufferSize > 0 &&
# HG changeset patch
# User Pooja Venkatesan <[email protected]>
# Date 1553576501 -19800
# Tue Mar 26 10:31:41 2019 +0530
# Node ID 39b35ea862834f05e7437e1670e55de595c8f875
# Parent 4217e691387cdeb6569846d5942422fec3126528
zone: Fix reconfiguration of RC param
diff -r 4217e691387c -r 39b35ea86283 source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp Mon May 06 15:54:01 2019 +0530
+++ b/source/encoder/encoder.cpp Tue Mar 26 10:31:41 2019 +0530
@@ -1641,7 +1641,7 @@
int Encoder::reconfigureParam(x265_param* encParam, x265_param* param)
{
- if (isReconfigureRc(encParam, param))
+ if (isReconfigureRc(encParam, param) && !param->rc.zonefileCount)
{
/* VBV can't be turned ON if it wasn't ON to begin with and can't be turned OFF if it was ON to begin with*/
if (param->rc.vbvMaxBitrate > 0 && param->rc.vbvBufferSize > 0 &&
_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel