diff options
author | v0lt <v0lt@users.sourceforge.net> | 2012-07-17 20:39:31 +0400 |
---|---|---|
committer | v0lt <v0lt@users.sourceforge.net> | 2012-07-17 20:39:31 +0400 |
commit | 173c05749d92d3e820a26c9dfc468c94069776f7 (patch) | |
tree | 807cd2b8c203f2673c4193b5a15dadbb69fdc0bb /src/filters/parser/MP4Splitter/MP4Splitter.cpp | |
parent | f50d25217814735316565b24cf3277f07b042ecb (diff) |
MP4Splitter: skip more extra characters from beginning of track name
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@5533 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/parser/MP4Splitter/MP4Splitter.cpp')
-rw-r--r-- | src/filters/parser/MP4Splitter/MP4Splitter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/filters/parser/MP4Splitter/MP4Splitter.cpp b/src/filters/parser/MP4Splitter/MP4Splitter.cpp index 0d2a827fa..5da75c547 100644 --- a/src/filters/parser/MP4Splitter/MP4Splitter.cpp +++ b/src/filters/parser/MP4Splitter/MP4Splitter.cpp @@ -513,7 +513,9 @@ HRESULT CMP4SplitterFilter::CreateOutputs(IAsyncReader* pAsyncReader) if (TrackName.IsEmpty()) {
TrackName = LocalToStringW(track->GetTrackName().c_str()); //Trying Local...
}
- TrackName.TrimLeft(_T("\x0010\x0013\x0015\x0017\x0018\x0019\x001A\x001B"));
+ if (TrackName.GetLength() && TrackName[0] < 0x20) {
+ TrackName.Delete(0);
+ }
TrackName.Trim();
CStringA TrackLanguage = track->GetTrackLanguage().c_str();
|