diff mbox series

[FFmpeg-devel,12/14] avradio/sdrdemux: Reduce FM audio bandwidth down toward reality

Message ID 20230712233706.449054-12-michael@niedermayer.cc
State New
Headers show
Series [FFmpeg-devel,01/14] avradio/rds: reset station timeout on successfull group decode | expand

Checks

Context Check Description
andriy/configure_x86 warning Failed to apply patch
yinshiyou/configure_loongarch64 warning Failed to apply patch

Commit Message

Michael Niedermayer July 12, 2023, 11:37 p.m. UTC
This avoids useless computations

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavradio/sdrdemux.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/libavradio/sdrdemux.c b/libavradio/sdrdemux.c
index c0ca420c84..54d7622809 100644
--- a/libavradio/sdrdemux.c
+++ b/libavradio/sdrdemux.c
@@ -1519,9 +1519,9 @@  int ff_sdr_common_init(AVFormatContext *s)
     av_log(s, AV_LOG_INFO, "Block size %d\n", sdr->block_size);
 
     sdr->block_time = sdr->block_size / (double)sdr->sdr_sample_rate;
-    sdr->am_bandwidth    =   6 * 1000;
-    sdr->fm_bandwidth    = 180 * 1000;
-    sdr->fm_bandwidth_p2 =  18 * 1000;
+    sdr->am_bandwidth    =   6   * 1000;
+    sdr->fm_bandwidth    = 180   * 1000;
+    sdr->fm_bandwidth_p2 =  16.5 * 1000; // Officially Stereo Broadcast FM has 15khz audio bandwidth
 
     sdr->am_block_size    = find_block_size(sdr, sdr->am_bandwidth);
     sdr->fm_block_size    = find_block_size(sdr, sdr->fm_bandwidth);