Skip to content

Commit

Permalink
AudioOutputBase: Fix coverity 'Unintentional integer overflow'
Browse files Browse the repository at this point in the history
(cherry picked from commit 4ad4c56)
  • Loading branch information
mark-kendall committed Mar 8, 2020
1 parent 288b7e6 commit bad5529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/audio/audiooutputbase.cpp
Expand Up @@ -1026,7 +1026,7 @@ int64_t AudioOutputBase::GetAudiotime(void)
obpf = 448000 * 10 / m_sourceSampleRate;
}
else
obpf = m_outputBytesPerFrame * 80;
obpf = static_cast<int64_t>(m_outputBytesPerFrame) * 80;

/* We want to calculate 'audiotime', which is the timestamp of the audio
Which is leaving the sound card at this instant.
Expand Down

0 comments on commit bad5529

Please sign in to comment.