[x265] [PATCH 2 of 3] search: fix decoder intra crash with --cu-lossless

Steve Borho steve at borho.org
Tue Aug 26 00:17:34 CEST 2014


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1409002896 18000
#      Mon Aug 25 16:41:36 2014 -0500
# Node ID 7e5709385119bb636abd2d198e40a243f1c2491f
# Parent  0bf2756898bc78e5660a6b607b2f3cda97834264
search: fix decoder intra crash with --cu-lossless

diff -r 0bf2756898bc -r 7e5709385119 source/Lib/TLibEncoder/TEncSearch.cpp
--- a/source/Lib/TLibEncoder/TEncSearch.cpp	Mon Aug 25 16:41:31 2014 -0500
+++ b/source/Lib/TLibEncoder/TEncSearch.cpp	Mon Aug 25 16:41:36 2014 -0500
@@ -572,6 +572,10 @@
 
         bool checkTQbypass = cu->m_slice->m_pps->bTransquantBypassEnabled && !m_param->bLossless;
 
+        // NOTE: transform_quant_bypass just at cu level
+        if ((cu->m_slice->m_pps->bTransquantBypassEnabled) && cu->getCUTransquantBypass(0) != checkTQbypass)
+            checkTQbypass = cu->getCUTransquantBypass(0) && !m_param->bLossless;
+
         uint32_t stride = fencYuv->getStride();
         pixel*   pred   = predYuv->getLumaAddr(absPartIdx);
 


More information about the x265-devel mailing list