diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2007-05-06 18:14:04 +0400 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2007-05-06 18:14:04 +0400 |
commit | 6267d38c8b1ae3de946bab7de28e333c77766673 (patch) | |
tree | 641521b40866382a55ec2f8daaf1442f7a703875 /src/filters/transform/vsfilter/Copy.cpp | |
parent | f5113274d1cc940feb3e2df7821871bae48ca212 (diff) |
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@74 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/transform/vsfilter/Copy.cpp')
-rw-r--r-- | src/filters/transform/vsfilter/Copy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filters/transform/vsfilter/Copy.cpp b/src/filters/transform/vsfilter/Copy.cpp index cbdfebf55..9d19b6222 100644 --- a/src/filters/transform/vsfilter/Copy.cpp +++ b/src/filters/transform/vsfilter/Copy.cpp @@ -397,8 +397,8 @@ row_loop3: HRESULT CDirectVobSubFilter::Copy(BYTE* pSub, BYTE* pIn, CSize sub, CSize in, int bpp, const GUID& subtype, DWORD black)
{
- int wIn = in.cx, hIn = in.cy, pitchIn = ((wIn*bpp>>3)+3)&~3;
- int wSub = sub.cx, hSub = sub.cy, pitchSub = ((wSub*bpp>>3)+3)&~3;
+ int wIn = in.cx, hIn = in.cy, pitchIn = wIn*bpp>>3;
+ int wSub = sub.cx, hSub = sub.cy, pitchSub = wSub*bpp>>3;
bool fScale2x = wIn*2 <= wSub;
if(fScale2x) wIn <<= 1, hIn <<= 1;
|