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

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

The following commit(s) were added to refs/heads/release/8.1 by this push:
     new cfa62de001 avformat/iamf_parse: fix inverted subblock duration 
validation
cfa62de001 is described below

commit cfa62de001af8ffeb7e22561f246469c7b809951
Author:     almogyalin <[email protected]>
AuthorDate: Wed Jul 29 07:02:38 2026 +0000
Commit:     ffmpeg-devel <[email protected]>
CommitDate: Wed Jul 29 21:10:52 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 d74a8677d6..92c012ba72 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]

Reply via email to