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 e1158301f0 avformat/mov: don't try to create an LCEVC group if there's 
a single track
e1158301f0 is described below

commit e1158301f0b7b98883b9614946d0eb2442e52d58
Author:     James Almer <[email protected]>
AuthorDate: Mon Mar 23 10:50:02 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Mon Mar 23 10:50:13 2026 -0300

    avformat/mov: don't try to create an LCEVC group if there's a single track
    
    In this scenario, as it's the case with DASH segments, the lcevc track will 
be
    alone but potentially have a sbas tref entry referencing itself, which will
    make avformat_stream_group_add_stream() fail.
    
    Signed-off-by: James Almer <[email protected]>
---
 libavformat/mov.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index dbf68a0971..2496b4fe5b 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -10797,6 +10797,10 @@ static int mov_parse_lcevc_streams(AVFormatContext *s)
 {
     int err;
 
+    // Don't try to add a group if there's only one track
+    if (s->nb_streams <= 1)
+        return 0;
+
     for (int i = 0; i < s->nb_streams; i++) {
         AVStreamGroup *stg;
         AVStream *st = s->streams[i];

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

Reply via email to