mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
qtdemux: effectively skip tracks that weren't listed on the 1st moov
Without this, stream is NULL and the code will try to access it, leading to segfaults.
This commit is contained in:
parent
70fca21c28
commit
78dfdee2aa
1 changed files with 2 additions and 0 deletions
|
@ -6892,6 +6892,7 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
|||
stream = qtdemux_find_stream (qtdemux, track_id);
|
||||
if (!stream) {
|
||||
GST_WARNING_OBJECT (qtdemux, "Stream not found, going to ignore it");
|
||||
goto skip_track;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -8070,6 +8071,7 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
|||
return TRUE;
|
||||
|
||||
/* ERRORS */
|
||||
skip_track:
|
||||
track_disabled:
|
||||
{
|
||||
GST_INFO_OBJECT (qtdemux, "skip disabled track");
|
||||
|
|
Loading…
Reference in a new issue