Skip to content

Commit

Permalink
FFmpegEncoder/Fix: Wrong divisor in sample length calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurumaker72 committed Dec 19, 2024
1 parent 645fbae commit 1ea42ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/capture/encoders/FFmpegEncoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ bool FFmpegEncoder::append_video(uint8_t* image)
{
if (lag_count > 2)
{
const auto samples_per_frame = static_cast<double>(m_params.arate) / m_params.fps;
const auto samples_per_frame = static_cast<double>(m_params.arate) / 64;
append_audio_impl(m_silence_buffer, static_cast<size_t>(round(samples_per_frame)));
}
}
Expand Down

0 comments on commit 1ea42ab

Please sign in to comment.