diff options
author | v0lt <v0lt@users.sourceforge.net> | 2011-08-23 17:06:22 +0400 |
---|---|---|
committer | v0lt <v0lt@users.sourceforge.net> | 2011-08-23 17:06:22 +0400 |
commit | 8982072213b51c1fe6160cc0e9d5ee3e19a483f0 (patch) | |
tree | 21d19044049a968bb587ff869a5d2d45bdb616a5 /src/filters/parser/MP4Splitter/MP4Splitter.cpp | |
parent | 814a4db46ce38d490539d6bb707d6cfc8227b53e (diff) |
MP4Splitter: fix C4018 warnings. optimization for previous commit
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@3696 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/parser/MP4Splitter/MP4Splitter.cpp')
-rw-r--r-- | src/filters/parser/MP4Splitter/MP4Splitter.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/filters/parser/MP4Splitter/MP4Splitter.cpp b/src/filters/parser/MP4Splitter/MP4Splitter.cpp index dceb7bbde..a2e0934d1 100644 --- a/src/filters/parser/MP4Splitter/MP4Splitter.cpp +++ b/src/filters/parser/MP4Splitter/MP4Splitter.cpp @@ -158,11 +158,7 @@ HRESULT CMP4SplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) }
CStringW TrackName = UTF8To16(track->GetTrackName().c_str());
- TrackName.Remove('\x0015');
- TrackName.Remove('\x0017');
- TrackName.Remove('\x0018');
- TrackName.Remove('\x0019');
- TrackName.Remove('\x001B');
+ TrackName.TrimLeft(_T("\x0015\x0017\x0018\x0019\x001B"));
TrackName.Trim();
CStringA TrackLanguage = track->GetTrackLanguage().c_str();
@@ -1222,7 +1218,7 @@ bool CMP4SplitterFilter::DemuxLoop() }
p->rtStop += (REFERENCE_TIME)(10000000.0 / track->GetMediaTimeScale() * sample.GetDuration());
- if(pPairNext->m_value.index+1 >= track->GetSampleCount() || p->GetCount() >= nBlockAlign) {
+ if(pPairNext->m_value.index+1 >= track->GetSampleCount() || (int)p->GetCount() >= nBlockAlign) {
break;
}
|