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 5dfe661f03 avformat/mov: ignore duplicate streams referenced with an
sbas tref entry
5dfe661f03 is described below
commit 5dfe661f034234ca05bcc3c1c1c11ae47bd03cfb
Author: James Almer <[email protected]>
AuthorDate: Tue Mar 24 13:25:26 2026 -0300
Commit: James Almer <[email protected]>
CommitDate: Thu Mar 26 22:17:07 2026 -0300
avformat/mov: ignore duplicate streams referenced with an sbas tref entry
Signed-off-by: James Almer <[email protected]>
---
libavformat/mov.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index e2e6b1c5f3..dc9233b8a8 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -10792,7 +10792,8 @@ static AVStream
*mov_find_reference_track(AVFormatContext *s, AVStream *st,
return NULL;
for (int i = first_index; i < s->nb_streams; i++)
- if (s->streams[i]->id == sc->tref_id)
+ if (s->streams[i]->index != st->index &&
+ s->streams[i]->id == sc->tref_id)
return s->streams[i];
return NULL;
@@ -10834,8 +10835,12 @@ static int mov_parse_lcevc_streams(AVFormatContext *s)
j = st_base->index + 1;
}
if (!j) {
- av_log(s, AV_LOG_ERROR, "Failed to find base stream for
enhancement stream\n");
- return AVERROR_INVALIDDATA;
+ int loglevel = (s->error_recognition & AV_EF_EXPLODE) ?
AV_LOG_ERROR : AV_LOG_WARNING;
+ av_log(s, loglevel, "Failed to find base stream for LCEVC
stream\n");
+ ff_remove_stream_group(s, stg);
+ if (s->error_recognition & AV_EF_EXPLODE)
+ return AVERROR_INVALIDDATA;
+ continue;
}
err = avformat_stream_group_add_stream(stg, st);
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]