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

Git pushed a commit to branch master
in repository ffmpeg.

commit ba57a33351a29904a5dd6047cfa3ecb7619a0b7f
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Sat Feb 21 16:53:11 2026 +0100
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Tue Mar 10 13:52:18 2026 +0100

    avformat/id3v2: Fix shadowing
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavformat/id3v2.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c
index 5fc82ad9dc..c196549e00 100644
--- a/libavformat/id3v2.c
+++ b/libavformat/id3v2.c
@@ -998,16 +998,16 @@ static void id3v2_parse(AVIOContext *pb, AVDictionary 
**metadata,
             if (unsync || tunsync) {
                 uint8_t *b = buffer;
                 uint8_t *t = buffer;
-                uint8_t *end = t + tlen;
 
                 if (avio_read(pb, buffer, tlen) != tlen) {
                     av_log(s, AV_LOG_ERROR, "Failed to read tag data\n");
                     goto seek;
                 }
 
-                while (t != end) {
+                const uint8_t *const buf_end = t + tlen;
+                while (t != buf_end) {
                     *b++ = *t++;
-                    if (t != end && t[-1] == 0xff && !t[0])
+                    if (t != buf_end && t[-1] == 0xff && !t[0])
                         t++;
                 }
 

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

Reply via email to