This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch release/9.0
in repository ffmpeg.
The following commit(s) were added to refs/heads/release/9.0 by this push:
new 8d7f63675c avformat/iamf_parse: fix inverted subblock duration
validation
8d7f63675c is described below
commit 8d7f63675c0d185c3229fd449fbaef4b73d8e23c
Author: almogyalin <[email protected]>
AuthorDate: Wed Jul 29 07:02:38 2026 +0000
Commit: ffmpeg-devel <[email protected]>
CommitDate: Wed Jul 29 21:10:58 2026 +0000
avformat/iamf_parse: fix inverted subblock duration validation
The check on variable subblock durations had an inverted comparison,
rejecting valid multi-subblock parameters and failing to catch subblock
durations exceeding the remaining time.
(cherry picked from commit 1635b49b80402c8cec39eefb12f35e2ee7c13606)
---
libavformat/iamf_parse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/iamf_parse.c b/libavformat/iamf_parse.c
index 4c2df2c9e6..37d7e04f7b 100644
--- a/libavformat/iamf_parse.c
+++ b/libavformat/iamf_parse.c
@@ -668,7 +668,7 @@ static int param_parse(void *s, IAMFContext *c, AVIOContext
*pb,
if (constant_subblock_duration == 0) {
subblock_duration = ffio_read_leb(pb);
- if (duration - total_duration > subblock_duration) {
+ if (subblock_duration > duration - total_duration) {
av_log(s, AV_LOG_ERROR, "Invalid subblock durations in
parameter_id %u\n", parameter_id);
av_free(param);
return AVERROR_INVALIDDATA;
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]