This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 881404bf5d avformat/aiffdec: improved handling of unaligned chunks
881404bf5d is described below
commit 881404bf5d878a3e11176165af77b4bfee73b4d9
Author: Peter Ross <[email protected]>
AuthorDate: Sat Oct 31 07:23:49 2026 +1100
Commit: Peter Ross <[email protected]>
CommitDate: Mon Nov 2 07:35:45 2026 +0000
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
---
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]