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

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

commit 6fd82bbd0364115e5d25031d6449d716c6ecbfc4
Author:     Peter Ross <[email protected]>
AuthorDate: Sat Oct 31 07:23:49 2026 +1100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Mon Nov 30 06:20:49 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 8ae577cb71..32aa87e7d8 100644
--- a/libavformat/aiffdec.c
+++ b/libavformat/aiffdec.c
@@ -263,6 +263,7 @@ static int aiff_read_header(AVFormatContext *s)
         if (size < 0)
             return size;
 
+        const int padding = size & 1;
         filesize -= size + 8;
 
         switch (tag) {
@@ -391,7 +392,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