changeset 5441:9f96817c8894

Move rdoQTS initialization after rdoQ is set.
author Deepthi Devaki <deepthidevaki@multicorewareinc.com>
date Tue, 03 Dec 2013 11:08:12 +0530
parents 9cfe20b782da
children 86d23688b017
files source/encoder/encoder.cpp
diffstat 1 files changed, 5 insertions(+-), 5 deletions(-) [+]
line wrap: on
line diff
--- a/source/encoder/encoder.cpp	Mon Dec 02 17:49:58 2013 +0530
+++ b/source/encoder/encoder.cpp	Tue Dec 03 11:08:12 2013 +0530
@@ -1234,11 +1234,6 @@ void Encoder::configure(x265_param *_par
     {
         _param->bEnableAMP = false;
     }
-
-    if (!(_param->bEnableRDOQ && _param->bEnableTransformSkip))
-    {
-        _param->bEnableRDOQTS = 0;
-    }
     if (_param->bBPyramid && !_param->bframes)
     {
         _param->bBPyramid = 0;
@@ -1258,6 +1253,11 @@ void Encoder::configure(x265_param *_par
         break;
     }
 
+    if (!(_param->bEnableRDOQ && _param->bEnableTransformSkip))
+    {
+        _param->bEnableRDOQTS = 0;
+    }
+
     //====== Coding Tools ========
 
     uint32_t tuQTMaxLog2Size = g_convertToBit[_param->maxCUSize] + 2 - 1;