[x265] [PATCH 5 of 7] encoder: give param->rc.qgSize a sane default when dqp is not used

deepthi at multicorewareinc.com deepthi at multicorewareinc.com
Sat Apr 18 08:22:07 CEST 2015


# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1428597108 18000
#      Thu Apr 09 11:31:48 2015 -0500
# Node ID e7514371241fd1a8340cecb5a3354f78c3cf7f30
# Parent  0e21e549cdd9940e84c2526813e28394783dc5cf
encoder: give param->rc.qgSize a sane default when dqp is not used

just in case the param is shown or consulted somewhere

diff -r 0e21e549cdd9 -r e7514371241f source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp	Thu Apr 09 11:30:33 2015 -0500
+++ b/source/encoder/encoder.cpp	Thu Apr 09 11:31:48 2015 -0500
@@ -1829,6 +1829,8 @@
             x265_log(p, X265_LOG_WARNING, "QGSize should be less than or equal to maxCUSize, setting QGSize = %d\n", p->rc.qgSize);
         }
     }
+    else
+        m_param->rc.qgSize = p->maxCUSize;
 }
 
 void Encoder::allocAnalysis(x265_analysis_data* analysis)


More information about the x265-devel mailing list