diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2009-08-13 22:53:44 +0400 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2009-08-13 22:53:44 +0400 |
commit | 649971727aff5049081bdee7ba000f3c6a5e86ea (patch) | |
tree | 06a27f33001632611ff401d5ad900f5a1c477a7e /src/filters/transform/mpadecfilter | |
parent | 2146692cf4fa0bf95a48372fb7e047fd31ed176e (diff) |
Fix : crash on malformed AAC streams
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1225 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/transform/mpadecfilter')
-rw-r--r-- | src/filters/transform/mpadecfilter/MpaDecFilter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/filters/transform/mpadecfilter/MpaDecFilter.cpp b/src/filters/transform/mpadecfilter/MpaDecFilter.cpp index 52f98eb29..9f74bafd6 100644 --- a/src/filters/transform/mpadecfilter/MpaDecFilter.cpp +++ b/src/filters/transform/mpadecfilter/MpaDecFilter.cpp @@ -1734,6 +1734,11 @@ HRESULT CMpaDecFilter::CheckInputType(const CMediaType* mtIn) {
return S_OK;
}
+ else if(mtIn->subtype == MEDIASUBTYPE_AAC)
+ {
+ // Reject invalid AAC stream on connection
+ if (!m_aac_state.init(*mtIn)) return VFW_E_TYPE_NOT_ACCEPTED;
+ }
for(int i = 0; i < countof(sudPinTypesIn); i++)
{
|