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
@ -6892,6 +6892,7 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
|||||||
stream = qtdemux_find_stream (qtdemux, track_id);
|
stream = qtdemux_find_stream (qtdemux, track_id);
|
||||||
if (!stream) {
|
if (!stream) {
|
||||||
GST_WARNING_OBJECT (qtdemux, "Stream not found, going to ignore it");
|
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;
|
return TRUE;
|
||||||
|
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
|
skip_track:
|
||||||
track_disabled:
|
track_disabled:
|
||||||
{
|
{
|
||||||
GST_INFO_OBJECT (qtdemux, "skip disabled track");
|
GST_INFO_OBJECT (qtdemux, "skip disabled track");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user