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

Git pushed a commit to branch master
in repository ffmpeg.

commit e7ae44999fcd7c3006233ece57f145ed635b9fd3
Author:     zhang xingxing <[email protected]>
AuthorDate: Sat Oct 10 08:31:03 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sun Oct 18 22:43:31 2026 +0000

    avformat/iamf_reader: fix the inverted subblock duration check
    
    This is not a security issue.
    
    Regression since: 8665748584
    Fixes: usWfwH9F2jUN
    Fixes: swarm-Inverted-comparison-in-subblock_duration-validation-6190ea
    Found-by: zhang xingxing <[email protected]>
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/iamf_reader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/iamf_reader.c b/libavformat/iamf_reader.c
index 1b963ee311..c2375ea835 100644
--- a/libavformat/iamf_reader.c
+++ b/libavformat/iamf_reader.c
@@ -201,7 +201,7 @@ static int parameter_block_obu(AVFormatContext *s, 
IAMFDemuxContext *c,
 
         if (!param_definition->mode && !constant_subblock_duration) {
             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);
                 ret = AVERROR_INVALIDDATA;
                 goto fail;

-- 
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