修复mp4v2在win32上崩溃的问题

This commit is contained in:
xiongziliang
2018-05-22 17:22:31 +08:00
parent 9c53248e39
commit 7c29c41767
2 changed files with 8 additions and 7 deletions

View File

@@ -48,6 +48,7 @@ HLSMaker::HLSMaker(const string& strM3u8File,
m_strM3u8File = strM3u8File;
m_ui32NumSegments = ui32Num;
m_ui32SegmentDuration = ui32Duration;
m_ui32LastStamp = 0;
m_strOutputPrefix = strM3u8File.substr(0, strM3u8File.rfind('.'));
m_strFileName = m_strOutputPrefix.substr(m_strOutputPrefix.rfind('/') + 1);