changeset 4969:74bed0a288f5

TComPicYuv: fixup 16x16 picture padding by using unpadded width as pad base
author Steve Borho <steve@borho.org>
date Fri, 08 Nov 2013 14:30:32 -0600
parents abb7c130ca2f
children 66659d4a7b31
files source/Lib/TLibCommon/TComPicYuv.cpp
diffstat 1 files changed, 2 insertions(+-), 2 deletions(-) [+]
line wrap: on
line diff
--- a/source/Lib/TLibCommon/TComPicYuv.cpp	Fri Nov 08 15:34:39 2013 +0530
+++ b/source/Lib/TLibCommon/TComPicYuv.cpp	Fri Nov 08 14:30:32 2013 -0600
@@ -348,9 +348,9 @@ void TComPicYuv::copyFromPicture(const x
     int height = m_picHeight - pady;
 
     /* internal pad to multiple of 16x16 blocks */
-    uint8_t rem = m_picWidth & 15;
+    uint8_t rem = width & 15;
     padx = rem ? 16 - rem : padx;
-    rem = m_picHeight & 15;
+    rem = width & 15;
     pady = rem ? 16 - rem : pady;
 
 #if HIGH_BIT_DEPTH