diff options
author | v0lt <v0lt@users.sourceforge.net> | 2012-05-13 12:06:58 +0400 |
---|---|---|
committer | v0lt <v0lt@users.sourceforge.net> | 2012-05-13 12:06:58 +0400 |
commit | 76bb8695f18f873a6119db1519ae7b7f8483df99 (patch) | |
tree | c6792fbcc53f22e56e4942d497c34b37c87b5502 /src/filters/transform/Mpeg2DecFilter | |
parent | 72fcf4bef25777de89f6007afd386cdbe82cc0bc (diff) |
* rewrote r4698 using C casts instead of C++ casts
* increase the numerator and denominator for the aspect ratio (8 bit -> 16 bit)
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4703 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/transform/Mpeg2DecFilter')
-rw-r--r-- | src/filters/transform/Mpeg2DecFilter/Mpeg2DecFilter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filters/transform/Mpeg2DecFilter/Mpeg2DecFilter.cpp b/src/filters/transform/Mpeg2DecFilter/Mpeg2DecFilter.cpp index daf86f1b9..a79af0e96 100644 --- a/src/filters/transform/Mpeg2DecFilter/Mpeg2DecFilter.cpp +++ b/src/filters/transform/Mpeg2DecFilter/Mpeg2DecFilter.cpp @@ -993,7 +993,7 @@ HRESULT CMpeg2DecFilter::CheckInputType(const CMediaType* mtIn) gb.BitRead(3); // profile
gb.BitRead(4); // level
gb.BitRead(1); // interlaced
- BYTE chroma = static_cast<BYTE>(gb.BitRead(2));
+ BYTE chroma = (BYTE)gb.BitRead(2);
if (chroma >= 2) { // current support only 4:2:0 profile
return VFW_E_TYPE_NOT_ACCEPTED;
}
|