Signed-off-by: Michael Niedermayer <[email protected]>
---
libavradio/sdrdemux.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavradio/sdrdemux.c b/libavradio/sdrdemux.c
index 318b5465da..6b1553b130 100644
--- a/libavradio/sdrdemux.c
+++ b/libavradio/sdrdemux.c
@@ -1368,6 +1368,8 @@ static int64_t snap2band(SDRContext *sdr, int64_t
wanted_freq, int64_t delta) {
min_center_freq += sdr->bandwidth / 2;
max_center_freq -= sdr->bandwidth / 2;
}
+ min_center_freq = av_clip64(min_center_freq, sdr->min_center_freq,
sdr->max_center_freq);
+ max_center_freq = av_clip64(max_center_freq, sdr->min_center_freq,
sdr->max_center_freq);
// Is the band in the direction we want to seek to ?
if (FFSIGN(min_center_freq - wanted_freq) == FFSIGN(max_center_freq -
wanted_freq))
--
2.31.1
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".