Message ID | 20230730221131.1205193-5-michael@niedermayer.cc |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,01/12] avradio/avformat/sdrdemux: Move agc_gain into local variable | expand |
Context | Check | Description |
---|---|---|
andriy/configure_x86 | warning | Failed to apply patch |
yinshiyou/configure_loongarch64 | warning | Failed to apply patch |
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);
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavformat/sdrdemux.c | 2 ++ 1 file changed, 2 insertions(+)