# HG changeset patch
# User Ashok Kumar Mishra<[email protected]>
# 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])
_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel

Reply via email to