• Sebastian Dröge's avatar
    qtdemux: Fix seeking on streams with frame reordering · 850e6788
    Sebastian Dröge authored
    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.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=782118
    850e6788
Name
Last commit
Last update
common @ 3fa2c9e3 Loading commit data...
docs Loading commit data...
ext Loading commit data...
gst Loading commit data...
gst-libs/gst Loading commit data...
hooks Loading commit data...
m4 Loading commit data...
pkgconfig Loading commit data...
po Loading commit data...
sys Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
MAINTAINERS Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
README.static-linking Loading commit data...
RELEASE Loading commit data...
REQUIREMENTS Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
gst-plugins-good.doap Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...