[x265] fix lossless

Satoshi Nakagawa nakagawa424 at oki.com
Wed Jan 14 13:13:38 CET 2015


# HG changeset patch
# User Satoshi Nakagawa <nakagawa424 at oki.com>
# Date 1421237427 -32400
#      Wed Jan 14 21:10:27 2015 +0900
# Node ID 23c7143cecf6f78938e517366dad963995fc7181
# Parent  9d26082ca7b3f22ba74872aad35a8b327313f5a6
fix lossless

diff -r 9d26082ca7b3 -r 23c7143cecf6 source/encoder/framefilter.cpp
--- a/source/encoder/framefilter.cpp	Wed Jan 14 15:58:21 2015 +0530
+++ b/source/encoder/framefilter.cpp	Wed Jan 14 21:10:27 2015 +0900
@@ -396,7 +396,7 @@
 /* restore original YUV samples to recon after SAO (if lossless) */
 static void restoreOrigLosslessYuv(const CUData* cu, Frame& frame, uint32_t absPartIdx, uint32_t depth)
 {
-    int size = g_maxCUDepth - depth - 2;
+    int size = g_maxLog2CUSize - depth - 2;
 
     PicYuv* reconPic = frame.m_reconPic;
     PicYuv* fencPic  = frame.m_fencPic;


More information about the x265-devel mailing list