Skip to content

Commit

Permalink
Update movDemuxer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jcdr428 authored May 3, 2024
1 parent c96a231 commit 140b673
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tsMuxer/movDemuxer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ class MovParsedAudioTrackData final : public ParsedTrackPrivData
unsigned frameSize = m_sc->sample_size;
if (frameSize == 0)
frameSize = m_sc->m_index[m_sc->m_indexCur++];
if (buff + frameSize > srcEnd) break;
if (buff + frameSize > srcEnd)
break;
if (isAAC)
{
m_aacRaw.m_channels = static_cast<uint8_t>(m_sc->channels);
Expand Down Expand Up @@ -725,7 +726,8 @@ int MovDemuxer::simpleDemuxBlock(DemuxedData& demuxedData, const PIDSet& accepte
}
}
const int64_t startPos = m_processedBytes;
while (m_processedBytes - startPos < m_fileBlockSize && m_curChunk < chunks.size() && m_curChunk < m_mdat_data.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;
Expand Down

0 comments on commit 140b673

Please sign in to comment.