[FFmpeg-cvslog] [ffmpeg-radio] 13/14: avradio/sdrdemux: snap2band doesnt change anything so use const

Michael Niedermayer ffmpeg-git at ffmpeg.org
Sat Jul 22 16:55:59 EEST 2023


This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository libavradio.

commit 2b2f054d1e8313f77b1e337ac88e4f83858eeac2
Author:     Michael Niedermayer <michael at niedermayer.cc>
AuthorDate: Tue Jul 18 22:55:55 2023 +0200
Commit:     Michael Niedermayer <michael at niedermayer.cc>
CommitDate: Sat Jul 22 15:44:54 2023 +0200

    avradio/sdrdemux: snap2band doesnt change anything so use const
    
    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;



More information about the ffmpeg-cvslog mailing list