Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8a5bfc35 authored by Andrew Lewis's avatar Andrew Lewis
Browse files

Clamp audio seek to non-zero timestamp

Seeking first seeks the video source, then uses the 'resolved' seek
position for video to seek the audio source. If an edit list is handled
by prerolling from a preceding keyframe in the video track, this can
lead to negative resolve seek positions from video, and seeks to
negative values are ignored.

Clamp the resolved seek position from the video source to be
non-negative so that the seek is not ignored. This fixes looping for
files with edit lists that require prerolling from before zero, though
video rendering needs to catch up after looping back to zero.

Bug: 156762034
Test: Manually verified using the APK in b/156762034#comment1
Change-Id: I59753b36d0f1272d4a7b4292b5edd787f9575dfa
parent 6d5a5c10
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment