diff mbox series

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

Message ID 20230718214542.685375-13-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 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;