Skip to content

fix: start playback after a seek at the position asked for - #493

Merged
devopvoid merged 2 commits into
mainfrom
fix/precise-seek
Oct 31, 2026
Merged

devopvoid merged 2 commits into
mainfrom
fix/precise-seek

Conversation

@devopvoid

Copy link
Copy Markdown
Owner

A seek landed on the keyframe before the position and played from there, so seek(1_500_000) started at 1 s. The player now decodes from the keyframe, drops the video before the position and cuts the audio frame it falls in, so the first chunk starts at it.

The reader lands on the keyframe before the position. The player now decodes from there, drops the video before the position and cuts the audio frame it falls in.
The video decoder drops them as they come out of the codec, so a frame decoded in hardware is not read back and none goes through swscale. While the hardware is on probation they are converted all the same, since only a full picture ends it.
@devopvoid
devopvoid merged commit 3d8254f into main Oct 31, 2026
39 of 40 checks passed
@devopvoid
devopvoid deleted the fix/precise-seek branch October 31, 2026 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant