[x265] cleanup debug code

chen chenm003 at 163.com
Wed Nov 16 18:24:40 CET 2016


# HG changeset patch
# User Min Chen <min.chen at multicorewareinc.com>
# Date 1479317016 21600
# Node ID 99a4a2d29d5c2b997745b06e5954a03bc080478f
# Parent  4c1652f3884fba9fab4c589dd057b12e6bf33d5b
cleanup debug code
---
 source/encoder/sao.cpp |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)


diff -r 4c1652f3884f -r 99a4a2d29d5c source/encoder/sao.cpp
--- a/source/encoder/sao.cppTue Nov 15 11:16:04 2016 +0530
+++ b/source/encoder/sao.cppWed Nov 16 11:23:36 2016 -0600
@@ -1206,12 +1206,10 @@
 void SAO::rdoSaoUnitRowEnd(const SAOParam* saoParam, int numctus)
 {
     if (!saoParam->bSaoFlag[0])
-    {
         m_depthSaoRate[0 * SAO_DEPTHRATE_SIZE + m_refDepth] = 1.0;
-    }
     else
     {
-        assert(m_numNoSao[0] <= numctus);
+        X265_CHECK(m_numNoSao[0] <= numctus, "m_numNoSao check failure!");
         m_depthSaoRate[0 * SAO_DEPTHRATE_SIZE + m_refDepth] = m_numNoSao[0] / ((double)numctus);
     }
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20161117/8c8c650e/attachment.html>


More information about the x265-devel mailing list