X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bmusb.cpp;fp=bmusb.cpp;h=7a1e07a84596b37543ca778c70a465e2ce1a0290;hb=8d4f7ab2bf19a970d17a0ca69a624962bdecaad6;hp=4a5f8a3c4b588336aa67ad3448f6e78d17e9bfb8;hpb=fc545e7ef82a73a082ab87e6416c78fe5205ad07;p=bmusb diff --git a/bmusb.cpp b/bmusb.cpp index 4a5f8a3..7a1e07a 100644 --- a/bmusb.cpp +++ b/bmusb.cpp @@ -252,7 +252,7 @@ int guess_sample_rate(const VideoFormat &video_format, size_t len, int default_r // See if we match or are very close to any of the mandatory HDMI sample rates. const int candidate_sample_rates[] = { 32000, 44100, 48000 }; for (int rate : candidate_sample_rates) { - if (abs(int(num_samples_per_second) - rate) < 50) { + if (abs(int(num_samples_per_second) - rate) <= 100) { return rate; } }