mirror of
https://github.com/justdan96/tsMuxer.git
synced 2026-10-18 05:01:20 +08:00
compare m_curChunk to m_mdat_data.size() in while condition (#840)
This commit is contained in:
@@ -725,7 +725,7 @@ int MovDemuxer::simpleDemuxBlock(DemuxedData& demuxedData, const PIDSet& accepte
|
||||
}
|
||||
}
|
||||
const int64_t startPos = m_processedBytes;
|
||||
while (m_processedBytes - startPos < m_fileBlockSize && m_curChunk < chunks.size())
|
||||
while (m_processedBytes - startPos < m_fileBlockSize && m_curChunk < chunks.size() && m_curChunk < m_mdat_data.size())
|
||||
{
|
||||
const int64_t offset = chunks[m_curChunk].first;
|
||||
int64_t next;
|
||||
|
||||
Reference in New Issue
Block a user