diff options
author | wm4 <wm4@nowhere> | 2015-01-28 19:38:49 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-28 19:40:12 +0100 |
commit | 7b3feecbc23e3e0b0d9cf66f02af53d127a0b681 (patch) | |
tree | c354aea981d03c7e754d45069556fe0d42c6fff1 /video/out | |
parent | 7f7340ce7627135a5f858ae538fd9a9f140b1ed1 (diff) | |
download | mpv-7b3feecbc23e3e0b0d9cf66f02af53d127a0b681.tar.bz2 mpv-7b3feecbc23e3e0b0d9cf66f02af53d127a0b681.tar.xz |
player: allow seeking audio between video frames
This allows seeking audio between two video frames that are relatively
far away.
The implementation of this is a bit subtle. It pretend the audio
position is different, and the actual PTS adjustment happens in audio.c
with this line:
sync_pts -= mpctx->audio_delay - mpctx->delay;
Effectively this is the same as setting sync_pts to hrseek_pts after
this line, though. (I'm actually not sure if this could be written in a
more straightforward way; probably yes.)
Diffstat (limited to 'video/out')
0 files changed, 0 insertions, 0 deletions