[x265] [PATCH] fix bug on SAO initialize

Min Chen chenm003 at 163.com
Sat Oct 5 08:46:43 CEST 2013


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1380955586 -28800
# Node ID 5f2fd94da27b3bc7584e33a5d4f0ff866e561c80
# Parent  4ee217cd64cc18a1f62fb8ef75c46240c123d1d9
fix bug on SAO initialize

diff -r 4ee217cd64cc -r 5f2fd94da27b source/encoder/framefilter.cpp
--- a/source/encoder/framefilter.cpp	Fri Oct 04 15:30:31 2013 -0500
+++ b/source/encoder/framefilter.cpp	Sat Oct 05 14:46:26 2013 +0800
@@ -87,14 +87,11 @@
     m_entropyCoder.setBitstream(&m_bitCounter);
     m_rdGoOnBinCodersCABAC.m_fracBits = 0;
 
-    if (m_cfg->param.bEnableLoopFilter)
+    if (m_cfg->param.bEnableSAO)
     {
         m_sao.resetStats();
         m_sao.createPicSaoInfo(pic);
-    }
 
-    if (m_cfg->param.bEnableSAO)
-    {
         SAOParam* saoParam = pic->getPicSym()->getSaoParam();
         m_sao.resetSAOParam(saoParam);
         m_sao.rdoSaoUnitRowInit(saoParam);



More information about the x265-devel mailing list