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

Michael Niedermayer michael at niedermayer.cc
Thu Jul 13 02:37:04 EEST 2023


This avoids useless computations

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

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);
-- 
2.31.1



More information about the ffmpeg-devel mailing list