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

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

commit 5197d3225e425ebc804671b93f81e000c365c851
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Wed Nov 11 17:42:34 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Thu Nov 19 04:36:59 2026 +0100

    avformat/mov: ignore iacb outside a trak
    
    Fixes: codec id change by an iacb outside a trak
    Fixes: sj3x4TsLBhUY
    
    Found during the review of https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25671
    
    (cherry picked from commit 196d3fca59053bdee3093f696b278e065cb5b310)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/mov.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 351c8b93ad..a10d6f8d3c 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -928,12 +928,13 @@ static int mov_read_iacb(MOVContext *c, AVIOContext *pb, 
MOVAtom atom)
     int nb_frames, disposition;
     int version, ret;
 
+    st = get_curr_st(c);
+    if (!st)
+        return 0;
+
     if (atom.size < 5)
         return AVERROR_INVALIDDATA;
 
-    if (c->fc->nb_streams < 1)
-        return 0;
-
     version = avio_r8(pb);
     if (version != 1) {
         av_log(c->fc, AV_LOG_ERROR, "%s configurationVersion %d",
@@ -945,7 +946,6 @@ static int mov_read_iacb(MOVContext *c, AVIOContext *pb, 
MOVAtom atom)
     if (!descriptors_size || descriptors_size > INT_MAX)
         return AVERROR_INVALIDDATA;
 
-    st = c->fc->streams[c->fc->nb_streams - 1];
     sc = st->priv_data;
 
     if (st->codecpar->extradata) {

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