[FFmpeg-cvslog] [ffmpeg-radio] 04/06: avradio/sdrdemux: adjust bandwidth to 200khz for FM probing
Michael Niedermayer
ffmpeg-git at ffmpeg.org
Wed Jul 19 00:42:55 EEST 2023
This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository libavradio.
commit a2b32945d79bbc8b968631ac00c87e515665a2b1
Author: Michael Niedermayer <michael at niedermayer.cc>
AuthorDate: Mon Jul 17 01:42:13 2023 +0200
Commit: Michael Niedermayer <michael at niedermayer.cc>
CommitDate: Mon Jul 17 01:42:13 2023 +0200
avradio/sdrdemux: adjust bandwidth to 200khz for FM probing
This improves the local noise floor value
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavradio/sdrdemux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavradio/sdrdemux.c b/libavradio/sdrdemux.c
index a4c590acf2..a0b80785ef 100644
--- a/libavradio/sdrdemux.c
+++ b/libavradio/sdrdemux.c
@@ -860,7 +860,7 @@ static int probe_fm(SDRContext *sdr)
{
int i;
int bandwidth_f = sdr->fm_bandwidth;
- int half_bw_i = bandwidth_f * (int64_t)sdr->block_size / sdr->sdr_sample_rate;
+ int half_bw_i = 200*1000 * (int64_t)sdr->block_size / sdr->sdr_sample_rate;
int floor_bw_i = 10*1000 * (int64_t)sdr->block_size / sdr->sdr_sample_rate;
float last_score[3] = {FLT_MAX, FLT_MAX, FLT_MAX};
int border_i = (sdr->sdr_sample_rate - FFMIN(sdr->bandwidth, sdr->sdr_sample_rate*7/8)) * sdr->block_size / sdr->sdr_sample_rate;
More information about the ffmpeg-cvslog
mailing list