Skip to content

Commit

Permalink
Increase the number of jitter detection samples to a power of two
Browse files Browse the repository at this point in the history
This results in cleaner averages, as well as helps with some samples to
prevent unneeded jitter correction.
  • Loading branch information
Nevcairiel committed Aug 23, 2022
1 parent 26e9f45 commit 797aa12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decoder/LAVAudio/LAVAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1300,12 +1300,12 @@ HRESULT CLAVAudio::ffmpeg_init(AVCodecID codec, const void *format, const GUID f

if (codec == AV_CODEC_ID_DTS || codec == AV_CODEC_ID_TRUEHD)
{
m_faJitter.SetNumSamples(200);
m_faJitter.SetNumSamples(256);
m_JitterLimit = MAX_JITTER_DESYNC * 10;
}
else
{
m_faJitter.SetNumSamples(50);
m_faJitter.SetNumSamples(64);
m_JitterLimit = MAX_JITTER_DESYNC;
}

Expand Down

0 comments on commit 797aa12

Please sign in to comment.