mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-08-09 17:39:08 +00:00
find_timestamp_in_playlist() already selects the first segment when the target is below the playlist's first timestamp, but returns 0. hls_read_seek() treats that as a failure, and all seek operation is failed. This breaks seeking to the very start whenever the requested timestamp is slightly below the first one. Clamp such targets to the first segment and report success instead. Fixes: https://github.com/mpv-player/mpv/issues/14840#issuecomment-4703186169 Signed-off-by: Kacper Michajłow <kasper93@gmail.com>