[x265] [PATCH] SAO: fix for output mismatch in windows

ashok at multicorewareinc.com ashok at multicorewareinc.com
Wed Apr 13 17:30:18 CEST 2016


# HG changeset patch
# User Ashok Kumar Mishra<ashok at multicorewareinc.com>
# Date 1460469889 -19800
#      Tue Apr 12 19:34:49 2016 +0530
# Node ID 4b3598944604948930df974ce4195cc28d387c4c
# Parent  40afead3177d7c128066334bfe075042388e86b0
SAO: fix for output mismatch in windows

diff -r 40afead3177d -r 4b3598944604 source/encoder/sao.cpp
--- a/source/encoder/sao.cpp	Sat Apr 09 19:32:28 2016 +0530
+++ b/source/encoder/sao.cpp	Tue Apr 12 19:34:49 2016 +0530
@@ -1254,7 +1254,7 @@
 
     // Estimate distortion and cost of new SAO params
     saoLumaComponentParamDist(saoParam, addr, mergeDist, lambda, bestCost);
-    if (chroma)
+    if (chroma && saoParam->bSaoFlag[1])
         saoChromaComponentParamDist(saoParam, addr, mergeDist, lambda, bestCost);
 
     if (saoParam->bSaoFlag[0] || saoParam->bSaoFlag[1])


More information about the x265-devel mailing list