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

Michael Niedermayer michael at niedermayer.cc
Wed Jul 19 00:45:40 EEST 2023


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



More information about the ffmpeg-devel mailing list