[Bug 749653] dashdemux: Implement binary search for stream_sidx_seek
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Thu May 28 14:02:08 PDT 2015
https://bugzilla.gnome.org/show_bug.cgi?id=749653
--- Comment #11 from Reynaldo H. Verdejo Pinochet <reynaldo at opendot.cl> ---
Comment on attachment 303756
--> https://bugzilla.gnome.org/attachment.cgi?id=303756
replace binary search to optimize in stream_sidx_seek.
>
>+static gint
>+gst_dash_demux_index_entry_search (GstSidxBoxEntry * entry, GstClockTime * ts,
>+ gpointer user_data)
>+{
>+ if (entry->pts + entry->duration < *ts)
>+ return -1;
>+ else if (entry->pts + entry->duration > *ts)
>+ return 1;
>+ else
>+ return 0;
>+}
It might make sense to avoid computing entry->pts + entry->duration
twice.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list