diff mbox series

[FFmpeg-devel,12/14] avradio/sdrdemux: + vs. - bug

Message ID 20230718214542.685375-12-michael@niedermayer.cc
State New
Headers show
Series [FFmpeg-devel,01/14] avradio/sdrdemux: Add Mittelwelle / Mediumwave / Mediumfrequency band | 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 18, 2023, 9:45 p.m. UTC
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavradio/sdrdemux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavradio/sdrdemux.c b/libavradio/sdrdemux.c
index a9ddf93733..ded9b8e26a 100644
--- a/libavradio/sdrdemux.c
+++ b/libavradio/sdrdemux.c
@@ -1571,7 +1571,7 @@  int ff_sdr_common_init(AVFormatContext *s)
     }
 
     sdr->min_center_freq = sdr->min_freq + sdr->sdr_sample_rate / 2;
-    sdr->max_center_freq = sdr->max_freq + sdr->sdr_sample_rate / 2;
+    sdr->max_center_freq = sdr->max_freq - sdr->sdr_sample_rate / 2;
 
 
     if(!sdr->block_size) {