diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2009-10-24 11:31:11 +0400 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2009-10-24 11:31:11 +0400 |
commit | 583e8ebd6caf0cadfd31099cf2888b455e45e67f (patch) | |
tree | d7cd962951e33af0cb760a2279a144b7fd546666 /src/filters/transform/mpadecfilter | |
parent | d89b1ecf13741a8dae2b120df035905329588651 (diff) |
Cosmetic changes
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1306 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/transform/mpadecfilter')
-rw-r--r-- | src/filters/transform/mpadecfilter/MpaDecFilter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/filters/transform/mpadecfilter/MpaDecFilter.cpp b/src/filters/transform/mpadecfilter/MpaDecFilter.cpp index b95d983f0..002196067 100644 --- a/src/filters/transform/mpadecfilter/MpaDecFilter.cpp +++ b/src/filters/transform/mpadecfilter/MpaDecFilter.cpp @@ -1823,6 +1823,7 @@ HRESULT CMpaDecFilter::GetMediaType(int iPosition, CMediaType* pmt) CMediaType mt = m_pInput->CurrentMediaType();
const GUID& subtype = mt.subtype;
WAVEFORMATEX* wfe = (WAVEFORMATEX*)mt.Format();
+ if (wfe == NULL) return E_INVALIDARG;
if(GetSpeakerConfig(ac3) < 0 && (subtype == MEDIASUBTYPE_DOLBY_AC3 ||
subtype == MEDIASUBTYPE_WAVE_DOLBY_AC3 ||
|