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 04ecca792f avformat/iamf_parse: fix inverted subblock duration
validation
04ecca792f is described below
commit 04ecca792fe8c4bfb9a8a2f580e6f3740258feee
Author: almogyalin <[email protected]>
AuthorDate: Wed Jul 29 07:02:38 2026 +0000
Commit: James Almer <[email protected]>
CommitDate: Wed Jul 29 21:08:37 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.
---
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]