PR #23207 opened by Zhao Zhili (quink) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23207 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23207.patch
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]> >From 4f1c728e55931b321605a3d4612c62ab88eebb4e Mon Sep 17 00:00:00 2001 From: Zhao Zhili <[email protected]> Date: Mon, 18 May 2026 17:58:41 +0800 Subject: [PATCH] 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 10ea818dd3..bf85f02e7c 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -8580,6 +8580,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; -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
