Change #264208
| Category | ffmpeg |
| Changed by | Kacper Michajłow <kasper93@gmail.com> |
| Changed at | Sat 11 Apr 2026 01:58:34 |
| Repository | https://git.ffmpeg.org/ffmpeg.git |
| Project | ffmpeg |
| Branch | master |
| Revision | 6d98a9a2e8757d6eb616501ade06877389a31597 |
Comments
avformat/hls: fix seeking in EVENT playlists that start mid-stream HLS EVENT playlists (e.g. Twitch VODs) are seekable but not finished, so live_start_index causes playback to begin near the end. The first packet's DTS then becomes first_timestamp, creating a wrong mapping between timestamps and segments. Fix this by subtracting the cumulative duration of skipped segments from first_timestamp so it reflects the true start of the playlist. Also set per-stream start_time from first_timestamp so correct time is reported, reset pts_wrap_reference on seek to prevent bogus wrap arounds. Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
Changed files
- libavformat/hls.c