Skip to content

Commit

Permalink
SoundSourceFFmpeg: Fix debug assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed Jul 21, 2021
1 parent 1005e8e commit 04d1b3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sources/soundsourceffmpeg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -968,9 +968,9 @@ const CSAMPLE* SoundSourceFFmpeg::resampleDecodedAVFrame() {
#if VERBOSE_DEBUG_LOG
avTrace("Received resampled frame", *m_pavResampledFrame);
#endif
DEBUG_ASSERT(m_pavDecodedFrame->pts == m_pavResampledFrame->pts);
DEBUG_ASSERT(m_pavDecodedFrame->nb_samples ==
m_pavResampledFrame->nb_samples);
DEBUG_ASSERT(m_pavResampledFrame->pts == AV_NOPTS_VALUE ||
m_pavResampledFrame->pts == m_pavDecodedFrame->pts);
DEBUG_ASSERT(m_pavResampledFrame->nb_samples == m_pavDecodedFrame->nb_samples);
return reinterpret_cast<const CSAMPLE*>(
m_pavResampledFrame->extended_data[0]);
} else {
Expand Down

0 comments on commit 04d1b3c

Please sign in to comment.