[Bug 782118] qtdemux: Fix seeking on streams with frame reordering

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed May 3 11:27:24 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=782118

--- Comment #1 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
Created attachment 350966
  --> https://bugzilla.gnome.org/attachment.cgi?id=350966&action=edit
qtdemux: Fix seeking on streams with frame reordering

The samples table is sorted by DTS, not PTS. As such we can only get the
correct result when using a binary search on it, if we search for the
DTS.
Also if we only ever search for the frame, where the following frame is
the first one with a PTS after the search position, we will generally
stop searching too early if frames are reordered.

In forwards playback this is not really a problem (after the decoder
reordered the frames, clipping is happening), in reverse playback
it means that we can output one or more frames too few as we stop too
early and the decoder would never receive it.

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