• llyyr's avatar
    avformat/mov: avoid seeking back to 0 on HEVC open GOP files · d1b96c38
    llyyr authored
    ab77b878 attempted to fix the issue of broken packets being sent to
    the decoder by implementing logic that kept attempting to PTS-step
    backwards until it reached a valid point, however applying this
    heuristic meant that in files that had no valid points (such as HEVC
    videos shot on iPhones), we'd seek back to sample 0 on every seek
    attempt. This meant that files that were previously seekable, albeit
    with some skipped frames, were not seekable at all now.
    
    Relax this heuristic a bit by giving up on seeking to a valid point if
    we've tried a different sample and we still don't have a valid point to
    seek to. This may some frames to be skipped on seeking but it's better
    than not being able to seek at all in such files.
    
    Fixes: ab77b878 ("avformat/mov: fix seeking with HEVC open GOP files")
    Fixes: #10585
    Signed-off-by: 's avatarPhilip Langdale <philipl@overt.org>
    d1b96c38
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...