This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 06ea751c51bd61f642f770e6bcddae610d4bd965
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Sat Feb 21 18:31:41 2026 +0100
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Tue Mar 10 13:52:18 2026 +0100

    avcodec/mpegaudioenc: Fix shadowing
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavcodec/mpegaudioenc.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavcodec/mpegaudioenc.c b/libavcodec/mpegaudioenc.c
index 9727c3819d..e2758c621f 100644
--- a/libavcodec/mpegaudioenc.c
+++ b/libavcodec/mpegaudioenc.c
@@ -87,7 +87,7 @@ static av_cold int mpa_encode_init(AVCodecContext *avctx)
     int freq = avctx->sample_rate;
     int bitrate = avctx->bit_rate;
     int channels = avctx->ch_layout.nb_channels;
-    int i, v, table;
+    int i, table;
     float a;
 
     bitrate = bitrate / 1000;
@@ -160,7 +160,7 @@ static av_cold int mpa_encode_init(AVCodecContext *avctx)
     }
 
     for(i=0;i<64;i++) {
-        v = (int)(exp2((3 - i) / 3.0) * (1 << 20));
+        int v = (int)(exp2((3 - i) / 3.0) * (1 << 20));
         if (v <= 0)
             v = 1;
         s->scale_factor_table[i] = v;
@@ -173,7 +173,7 @@ static av_cold int mpa_encode_init(AVCodecContext *avctx)
         }
     }
     for(i=0;i<128;i++) {
-        v = i - 64;
+        int v = i - 64;
         if (v <= -3)
             v = 0;
         else if (v < 0)
@@ -188,7 +188,7 @@ static av_cold int mpa_encode_init(AVCodecContext *avctx)
     }
 
     for(i=0;i<17;i++) {
-        v = ff_mpa_quant_bits[i];
+        int v = ff_mpa_quant_bits[i];
         if (v < 0)
             v = -v;
         else

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to