Skip to content

Commit

Permalink
Fix debug assertion when decoding corrupt files
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed Oct 5, 2019
1 parent 3f2c326 commit 83bfa9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/engine/cachingreaderchunk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ mixxx::IndexRange CachingReaderChunk::bufferSampleFrames(
mixxx::WritableSampleFrames(
sourceFrameIndexRange,
mixxx::SampleBuffer::WritableSlice(m_sampleBuffer)));
DEBUG_ASSERT(m_bufferedSampleFrames.frameIndexRange() <= sourceFrameIndexRange);
DEBUG_ASSERT(m_bufferedSampleFrames.frameIndexRange().empty() ||
m_bufferedSampleFrames.frameIndexRange() <= sourceFrameIndexRange);
return m_bufferedSampleFrames.frameIndexRange();
}

Expand Down

0 comments on commit 83bfa9e

Please sign in to comment.