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 <jamrial@gmail.com>
(cherry picked from commit e1158301f0)
This commit is contained in:
James Almer 2026-03-23 10:50:02 -03:00
parent 3ec48e4bc6
commit bd7f101bda

View file

@ -10793,6 +10793,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];