[FFmpeg-devel] [PATCH 09/12] avradio/avformat/sdrdemux: dont use a fuction name as local variable

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


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

diff --git a/libavformat/sdrdemux.c b/libavformat/sdrdemux.c
index 3f3390049c..0e327f4860 100644
--- a/libavformat/sdrdemux.c
+++ b/libavformat/sdrdemux.c
@@ -1043,13 +1043,13 @@ static int demodulate_fm(SDRContext *sdr, Station *station, AVStream *st, AVPack
     double carrier19_i_exact;
     int W= 5;
     double dc = 0, dcw = 0;
-    int len2 = FFMIN(index, 2*sdr->block_size - index);
+    int lenmax = FFMIN(index, 2*sdr->block_size - index);
 
     av_assert0(!st || (sst == station->stream && sst->station == station));
 
     //If only some of the bandwidth is available, just try with less
-    if (len2 < len && len2 > len/2)
-        len = len2;
+    if (lenmax < len && lenmax > len/2)
+        len = lenmax;
 
     if (index + len >= 2*sdr->block_size ||
         index - len < 0 ||
-- 
2.31.1



More information about the ffmpeg-devel mailing list