diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2008-01-08 20:56:51 +0300 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2008-01-08 20:56:51 +0300 |
commit | 0395bc0a9415843405536092d044165c5ba28344 (patch) | |
tree | 4d5c6f0ea84a25a93095f2011a4ac4e2fe5fa04a /src/filters/parser/mp4splitter | |
parent | e70a433811994a34fc65dd08559ac32a063e98e1 (diff) |
Bugs fixes
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@373 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/parser/mp4splitter')
-rw-r--r-- | src/filters/parser/mp4splitter/MP4Splitter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/filters/parser/mp4splitter/MP4Splitter.cpp b/src/filters/parser/mp4splitter/MP4Splitter.cpp index d6cc329d2..dbc98fac4 100644 --- a/src/filters/parser/mp4splitter/MP4Splitter.cpp +++ b/src/filters/parser/mp4splitter/MP4Splitter.cpp @@ -419,6 +419,8 @@ HRESULT CMP4SplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) vih->hdr.bmiHeader.biBitCount = 24;
vih->hdr.dwPictAspectRatioX = vih->hdr.bmiHeader.biWidth;
vih->hdr.dwPictAspectRatioY = vih->hdr.bmiHeader.biHeight;
+ if (item->GetData()->GetSampleCount() > 1)
+ vih->hdr.AvgTimePerFrame = item->GetData()->GetDurationMs()*10000 / (item->GetData()->GetSampleCount()-1);
vih->dwProfile = data[1];
vih->dwLevel = data[3];
vih->dwFlags = (data[4] & 3) + 1;
|