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

Git pushed a commit to branch master
in repository ffmpeg.

commit 196d3fca59053bdee3093f696b278e065cb5b310
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Wed Nov 11 17:42:34 2026 +0100
Commit:     michaelni <[email protected]>
CommitDate: Sun Nov 15 20:24:34 2026 +0000

    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
---
 libavformat/mov.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index ca33cb2285..65f66f6c15 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