[FFmpeg-devel] [PATCH 13/14] avradio/sdrdemux: snap2band doesnt change anything so use const

Michael Niedermayer michael at niedermayer.cc
Wed Jul 19 00:45:41 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 ded9b8e26a..65b5e6df8d 100644
--- a/libavradio/sdrdemux.c
+++ b/libavradio/sdrdemux.c
@@ -1367,7 +1367,7 @@ static int snap2station(SDRContext *sdr, int *seek_direction) {
  * move frequency in the delta direction within a band
  * This can be called from the thread so it must only access runtime constants from sdr->
  */
-static int64_t snap2band(SDRContext *sdr, int64_t wanted_freq, int64_t delta) {
+static int64_t snap2band(const SDRContext *sdr, int64_t wanted_freq, int64_t delta) {
     int64_t best_distance = INT64_MAX;
     int64_t best_frequency = wanted_freq;
     int64_t wrap_frequency = delta > 0 ? 0 : INT64_MAX;
-- 
2.31.1



More information about the ffmpeg-devel mailing list