diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2008-12-09 22:35:55 +0300 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2008-12-09 22:35:55 +0300 |
commit | 052dc45b971e3fd77694a49b20e37f91bae40e60 (patch) | |
tree | 4083092df671362c7bc863201d273dcc8be2ec00 /src/filters/parser/mp4splitter | |
parent | d96064924a6cc8d69fdf70af28e792c06ede165a (diff) |
CHANGED: Support for AC3 in MP4 splitter
CHANGED: Support for EAc3 in Matroska splitter
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@919 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/parser/mp4splitter')
3 files changed, 6 insertions, 0 deletions
diff --git a/src/filters/parser/mp4splitter/AP4/Source/Core/Ap4Atom.h b/src/filters/parser/mp4splitter/AP4/Source/Core/Ap4Atom.h index 84e33d4a9..724f62210 100644 --- a/src/filters/parser/mp4splitter/AP4/Source/Core/Ap4Atom.h +++ b/src/filters/parser/mp4splitter/AP4/Source/Core/Ap4Atom.h @@ -268,6 +268,7 @@ const AP4_Atom::Type AP4_ATOM_TYPE_WAVE = AP4_ATOM_TYPE('w','a','v','e'); const AP4_Atom::Type AP4_ATOM_TYPE_CMOV = AP4_ATOM_TYPE('c','m','o','v');
const AP4_Atom::Type AP4_ATOM_TYPE_DCOM = AP4_ATOM_TYPE('d','c','o','m');
const AP4_Atom::Type AP4_ATOM_TYPE_CMVD = AP4_ATOM_TYPE('c','m','v','d');
+const AP4_Atom::Type AP4_ATOM_TYPE__AC3 = AP4_ATOM_TYPE('a','c','-','3');
/*----------------------------------------------------------------------
| AP4_AtomListInspector
diff --git a/src/filters/parser/mp4splitter/AP4/Source/Core/Ap4AtomFactory.cpp b/src/filters/parser/mp4splitter/AP4/Source/Core/Ap4AtomFactory.cpp index efb9d13b3..38cf5af0d 100644 --- a/src/filters/parser/mp4splitter/AP4/Source/Core/Ap4AtomFactory.cpp +++ b/src/filters/parser/mp4splitter/AP4/Source/Core/Ap4AtomFactory.cpp @@ -393,6 +393,7 @@ AP4_AtomFactory::CreateAtomFromStream(AP4_ByteStream& stream, case AP4_ATOM_TYPE_SAMR:
case AP4_ATOM_TYPE__MP3:
+ case AP4_ATOM_TYPE__AC3:
case AP4_ATOM_TYPE_IMA4:
case AP4_ATOM_TYPE_QDMC:
case AP4_ATOM_TYPE_QDM2:
diff --git a/src/filters/parser/mp4splitter/MP4Splitter.cpp b/src/filters/parser/mp4splitter/MP4Splitter.cpp index 2070d0c34..0070225bb 100644 --- a/src/filters/parser/mp4splitter/MP4Splitter.cpp +++ b/src/filters/parser/mp4splitter/MP4Splitter.cpp @@ -473,6 +473,10 @@ HRESULT CMP4SplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) {
type = 0x0055;
}
+ else if(type == AP4_ATOM_TYPE__AC3)
+ {
+ type = 0x2000;
+ }
else
{
type =
|