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

Git pushed a commit to branch release/9.1
in repository ffmpeg.

commit 54f75a4ba8e986936918d4a78e27fbea5c66733b
Author:     Peter Ross <[email protected]>
AuthorDate: Sat Oct 31 07:23:49 2026 +1100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Thu Nov 19 19:19:05 2026 +0100

    avformat/aiffdec: improved handling of unaligned chunks
    
    Use dedicated variable for signalling an unaligned chunk.  When an APPL
    chunk is encountered, size is modified, so the size variable cannot be
    later used as a reliable unaligned indicator.
    
    Suggested-by: Kae
    Fixes: https://code.ffmpeg.org/FFmpeg/FFmpeg/issues/25617
    (cherry picked from commit 881404bf5d878a3e11176165af77b4bfee73b4d9)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/aiffdec.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/aiffdec.c b/libavformat/aiffdec.c
index 63194f2726..2a14d0b95c 100644
--- a/libavformat/aiffdec.c
+++ b/libavformat/aiffdec.c
@@ -265,6 +265,7 @@ static int aiff_read_header(AVFormatContext *s)
         if (size < 0)
             return size;
 
+        const int padding = size & 1;
         filesize -= size + 8;
 
         switch (tag) {
@@ -394,7 +395,7 @@ static int aiff_read_header(AVFormatContext *s)
         }
 
         /* Skip required padding byte for odd-sized chunks. */
-        if (size & 1) {
+        if (padding) {
             filesize--;
             avio_skip(pb, 1);
         }

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to