[x265] [PATCH] TComPicYuv: fix padding issue

aarthi at multicorewareinc.com aarthi at multicorewareinc.com
Sun Nov 10 06:53:34 CET 2013


# HG changeset patch
# User Aarthi Thirumalai<aarthi at multicorewareinc.com>
# Date 1384062755 -19800
#      Sun Nov 10 11:22:35 2013 +0530
# Node ID 82c1059d0960d5cbfead3dae61956e8257ff0eb6
# Parent  9d74638c3640679d09264b793afdf3ffc58a9107
TComPicYuv: fix padding issue

diff -r 9d74638c3640 -r 82c1059d0960 source/Lib/TLibCommon/TComPicYuv.cpp
--- a/source/Lib/TLibCommon/TComPicYuv.cpp	Sat Nov 09 20:14:24 2013 -0600
+++ b/source/Lib/TLibCommon/TComPicYuv.cpp	Sun Nov 10 11:22:35 2013 +0530
@@ -209,9 +209,9 @@
 
     /* internal pad to multiple of 16x16 blocks */
     uint8_t rem = width & 15;
-    padx = rem ? 16 - rem : padx;
+    padx += rem ? 16 - rem : padx;
     rem = width & 15;
-    pady = rem ? 16 - rem : pady;
+    pady += rem ? 16 - rem : pady;
 
 #if HIGH_BIT_DEPTH
     if (pic.bitDepth > 8)


More information about the x265-devel mailing list