mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
qtdemux: Check if there's actually a seek table before parsing it
This commit is contained in:
parent
5d9c8996da
commit
e7ac799278
1 changed files with 3 additions and 0 deletions
|
@ -876,6 +876,9 @@ gst_qtdemux_find_index_for_given_media_offset_linear (GstQTDemux * qtdemux,
|
|||
QtDemuxSample *result = str->samples;
|
||||
guint32 index = 0;
|
||||
|
||||
if (result == NULL || str->n_samples == 0)
|
||||
return -1;
|
||||
|
||||
if (media_offset == result->offset)
|
||||
return index;
|
||||
|
||||
|
|
Loading…
Reference in a new issue