qtdemux: Check if there's actually a seek table before parsing it

This commit is contained in:
Sebastian Dröge 2010-12-11 17:49:03 +01:00
parent 5d9c8996da
commit e7ac799278

View file

@ -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;