diff mbox series

[FFmpeg-devel,05/14] avradio/sdrdemux: basic warning cleanup

Message ID 20230712233706.449054-5-michael@niedermayer.cc
State New
Headers show
Series [FFmpeg-devel,01/14] avradio/rds: reset station timeout on successfull group decode | expand

Checks

Context Check Description
andriy/configure_x86 warning Failed to apply patch
yinshiyou/configure_loongarch64 warning Failed to apply patch

Commit Message

Michael Niedermayer July 12, 2023, 11:36 p.m. UTC
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavradio/sdrdemux.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavradio/sdrdemux.c b/libavradio/sdrdemux.c
index fd3f5dd52d..e45d00724b 100644
--- a/libavradio/sdrdemux.c
+++ b/libavradio/sdrdemux.c
@@ -1148,7 +1148,6 @@  static int setup_stream(SDRContext *sdr, int stream_index, Station *station)
     AVFormatContext *s = sdr->avfmt;
     AVStream *st = s->streams[stream_index];
     SDRStream *sst = st->priv_data;
-    int ret;
 
     //For now we expect each station to be only demodulated once, nothing should break though if its done more often
     av_assert0(station->stream == NULL || station->stream == sst);
@@ -1163,9 +1162,9 @@  static int setup_stream(SDRContext *sdr, int stream_index, Station *station)
     station->stream = sst;
 
     if (st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO) {
+        int block_size;
         free_stream(sdr, stream_index);
 
-        int block_size;
         if (sst->station->modulation == FM) {
             block_size = sdr->fm_block_size;
         } else