mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-04-18 08:30:24 +00:00
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:
parent
3ec48e4bc6
commit
bd7f101bda
1 changed files with 4 additions and 0 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue