From 1b5f3846739a4715a701e7077e70f516ac1f2c7c Mon Sep 17 00:00:00 2001 From: Zilog80 Date: Thu, 20 Aug 2020 14:43:19 +0200 Subject: [PATCH] baseband IQ: approx (prime) base_sr 900001 --- demod/multi/demod_base.c | 1 + scan/dft_detect.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/demod/multi/demod_base.c b/demod/multi/demod_base.c index 79955ce..c95c9f4 100644 --- a/demod/multi/demod_base.c +++ b/demod/multi/demod_base.c @@ -303,6 +303,7 @@ float read_wav_header(pcm_t *pcm) { if (bits_sample != 8 && bits_sample != 16 && bits_sample != 32) return -1; + if (sample_rate == 900001) sample_rate -= 1; pcm->sr = sample_rate; pcm->bps = bits_sample; diff --git a/scan/dft_detect.c b/scan/dft_detect.c index d103f93..8feb325 100644 --- a/scan/dft_detect.c +++ b/scan/dft_detect.c @@ -434,6 +434,8 @@ static int read_wav_header(FILE *fp, int wav_channel) { if (bits_sample != 8 && bits_sample != 16 && bits_sample != 32) return -1; + if (sample_rate == 900001) sample_rate -= 1; + return 0; }