mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 21:28:45 +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;
|
QtDemuxSample *result = str->samples;
|
||||||
guint32 index = 0;
|
guint32 index = 0;
|
||||||
|
|
||||||
|
if (result == NULL || str->n_samples == 0)
|
||||||
|
return -1;
|
||||||
|
|
||||||
if (media_offset == result->offset)
|
if (media_offset == result->offset)
|
||||||
return index;
|
return index;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue