[FFmpeg-devel] [PATCH 05/12] avradio/avformat/sdrdemux: delay station search on AGC adjust

Michael Niedermayer michael at niedermayer.cc
Mon Jul 31 01:11:24 EEST 2023


Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libavformat/sdrdemux.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/sdrdemux.c b/libavformat/sdrdemux.c
index fa45d30a3d..44a6489bd2 100644
--- a/libavformat/sdrdemux.c
+++ b/libavformat/sdrdemux.c
@@ -1536,6 +1536,8 @@ static void *soapy_needs_bigger_buffers_worker(SDRContext *sdr)
             int ret = sdr->set_gain_callback(sdr, wanted_gain);
             if (ret >= 0) {
                 agc_gain = wanted_gain;
+                if (block_counter)
+                    block_counter = 1;
             }
         }
         pthread_mutex_unlock(&sdr->mutex);
-- 
2.31.1



More information about the ffmpeg-devel mailing list