From aab36e4df3db4d90bdbcebede502bfba9f6cdbde Mon Sep 17 00:00:00 2001 From: xy Date: Sun, 29 Jul 2012 17:38:52 +0800 Subject: [PATCH] Avoid Possible Bug. --- src/subpic/MemSubPic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/subpic/MemSubPic.cpp b/src/subpic/MemSubPic.cpp index 39a3130..367fccf 100644 --- a/src/subpic/MemSubPic.cpp +++ b/src/subpic/MemSubPic.cpp @@ -444,7 +444,7 @@ void CMemSubPic::SubsampleAndInterlace( const CRect& cRect, bool u_first ) //Todo: fix me. //Walkarround for alignment - if ( (m_spd.pitch&15) == 0 ) + if ( ((m_spd.pitch|w)&15) == 0 ) { ASSERT(w%16==0); for (int i=0;i