diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2010-08-19 05:36:10 +0400 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2010-08-19 05:36:10 +0400 |
commit | 0cc715e5d824484a0ba12f4def095682f39fbb2e (patch) | |
tree | 13b563fddab73afde1c861f79cc8e7e50109e64c /src/filters/parser/MP4Splitter | |
parent | 84039065122ada5a97b668c2510431a6c29c767d (diff) |
Update : some change in MP4Splitter;
Update : SizeCBar to latest version 2.45;
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2270 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/parser/MP4Splitter')
-rw-r--r-- | src/filters/parser/MP4Splitter/MP4Splitter.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/filters/parser/MP4Splitter/MP4Splitter.cpp b/src/filters/parser/MP4Splitter/MP4Splitter.cpp index 1f1f72ee8..e0bf6fc9b 100644 --- a/src/filters/parser/MP4Splitter/MP4Splitter.cpp +++ b/src/filters/parser/MP4Splitter/MP4Splitter.cpp @@ -270,6 +270,8 @@ HRESULT CMP4SplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) wfe->nChannels = audio_desc->GetChannelCount();
wfe->wBitsPerSample = audio_desc->GetSampleSize();
wfe->cbSize = (WORD)di->GetDataSize();
+ wfe->nBlockAlign = (WORD)((wfe->nChannels * wfe->wBitsPerSample) / 8);
+
memcpy(wfe + 1, di->GetData(), di->GetDataSize());
switch(audio_desc->GetObjectTypeId())
@@ -537,9 +539,9 @@ HRESULT CMP4SplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) wfe->nChannels = ase->GetChannelCount();
wfe->wBitsPerSample = ase->GetSampleSize();
wfe->nBlockAlign = ase->GetBytesPerFrame();
- //if(wfe->nBlockAlign == 0)
- // wfe->nBlockAlign = wfe->wBitsPerSample / 8;
- //wfe->nAvgBytesPerSec = wfe->wBitsPerSample * wfe->nSamplesPerSec / 8;
+ if(wfe->nBlockAlign == 0)
+ wfe->nBlockAlign = wfe->wBitsPerSample / 8;
+ wfe->nAvgBytesPerSec = wfe->wBitsPerSample * wfe->nSamplesPerSec / 8;
wfe->cbSize = db.GetDataSize();
memcpy(wfe+1, db.GetData(), db.GetDataSize());
mts.Add(mt);
|