[FFmpeg-devel] [PATCH 5/6] avradio/sdrinradio: apply R820T correction only for non direct mode
Michael Niedermayer
michael at niedermayer.cc
Mon Jul 24 21:35:34 EEST 2023
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavradio/sdrinradio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavradio/sdrinradio.c b/libavradio/sdrinradio.c
index 2865b6a9a6..ab7e786744 100644
--- a/libavradio/sdrinradio.c
+++ b/libavradio/sdrinradio.c
@@ -113,7 +113,7 @@ static int64_t sdrindev_set_frequency_callback(SDRContext *sdr, int64_t freq)
} else
sdr->current_direct_samp = value;
}
- if (e && strstr(e->value, "R820T")) {
+ if (e && strstr(e->value, "R820T") && !strcmp(value, "0")) {
//The R820T has a 16 bit fractional PLL which can do only multiplies of 439.45
//Its more complex but this approximation works
//It has to be noted that SOAPY does not tell us about this, instead saopy
--
2.31.1
More information about the ffmpeg-devel
mailing list