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 a0def8f915 avformat/movenc: skip the metadata stream itself when 
populating tref
a0def8f915 is described below

commit a0def8f915aba197a625d29573bdd0f2007e8447
Author:     Zhao Zhili <[email protected]>
AuthorDate: Mon May 18 17:58:41 2026 +0800
Commit:     James Almer <[email protected]>
CommitDate: Sun May 24 21:14:31 2026 +0000

    avformat/movenc: skip the metadata stream itself when populating tref
    
    A tref stream group lists the metadata stream (e.g. tmcd) alongside the
    streams it references. The init loop iterated over every stream in the
    group and added it to the metadata track's src_track array, which made
    the tmcd track reference itself.
    
    Regression since 4444a755.
    
    Signed-off-by: Zhao Zhili <[email protected]>
---
 libavformat/movenc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 586a378c4e..bd9e13adeb 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -8620,6 +8620,9 @@ static int mov_init(AVFormatContext *s)
                 const AVStream *st2 = stg->streams[j];
                 int index = -1;
 
+                if (j == tref->metadata_index)
+                    continue;
+
                 for (int k = 0; k < mov->nb_tracks; k++) {
                     if (mov->tracks[k].st != st2)
                         continue;

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to