diff options
author | llyyr <llyyr.public@gmail.com> | 2024-05-21 18:52:51 -0700 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2024-05-21 18:57:44 -0700 |
commit | d1b96c380826c505a8c7e655b5ad4fdb0c2de167 (patch) | |
tree | 8f98b2d3fdb297d13bebe286d0685de9454e638f /libavcodec/dsicinvideo.c | |
parent | 0c1304ae11b0361ede055ee8ffc6e83529468c73 (diff) | |
download | ffmpeg-d1b96c380826c505a8c7e655b5ad4fdb0c2de167.tar.gz |
avformat/mov: avoid seeking back to 0 on HEVC open GOP files
ab77b878f1 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: ab77b878f1 ("avformat/mov: fix seeking with HEVC open GOP files")
Fixes: #10585
Signed-off-by: Philip Langdale <philipl@overt.org>
Diffstat (limited to 'libavcodec/dsicinvideo.c')
0 files changed, 0 insertions, 0 deletions