diff --git a/tsMuxer/movDemuxer.cpp b/tsMuxer/movDemuxer.cpp index 1279b1c8..ab301976 100644 --- a/tsMuxer/movDemuxer.cpp +++ b/tsMuxer/movDemuxer.cpp @@ -184,6 +184,7 @@ 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 (isAAC) { m_aacRaw.m_channels = static_cast(m_sc->channels);