diff options
author | Underground78 <underground78@users.sourceforge.net> | 2012-05-19 21:06:58 +0400 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2012-05-19 21:06:58 +0400 |
commit | caf03a30761d01026788f55c3e18400b50944d8a (patch) | |
tree | 8e520b33777653e469941371c37cb925783b870c /src/filters/transform | |
parent | 62027be3b2b59998a50b50d7be184676f2a90f15 (diff) |
Use the _countof macro where it makes sense.
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4802 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/transform')
-rw-r--r-- | src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp b/src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp index a05f1fcdb..264ace989 100644 --- a/src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp +++ b/src/filters/transform/MPCVideoDec/MPCVideoDecFilter.cpp @@ -1029,7 +1029,7 @@ STDMETHODIMP CMPCVideoDecFilter::NonDelegatingQueryInterface(REFIID riid, void** HRESULT CMPCVideoDecFilter::CheckInputType(const CMediaType* mtIn)
{
- for (int i=0; i<sizeof(sudPinTypesIn)/sizeof(AMOVIESETUP_MEDIATYPE); i++) {
+ for (int i=0; i<_countof(sudPinTypesIn); i++) {
if ((mtIn->majortype == *sudPinTypesIn[i].clsMajorType) &&
(mtIn->subtype == *sudPinTypesIn[i].clsMinorType)) {
return S_OK;
|