diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-07-10 12:53:05 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-02 04:14:43 +0200 |
commit | d6322407c503bbca1f1bb48e06e275f7b610a3a8 (patch) | |
tree | c91fb481adc01438c39ace4ace6c5e0ddf30dfdd /spudec.c | |
parent | 1882a37adb50774089d5d508ef9910d4b2a30db4 (diff) | |
download | mpv-d6322407c503bbca1f1bb48e06e275f7b610a3a8.tar.bz2 mpv-d6322407c503bbca1f1bb48e06e275f7b610a3a8.tar.xz |
subs: change subdelay handling and vobsub timing
Make subdelay handling work the same way for all subtitle types and
also allow changing subtitle delay to work better with vobsubs.
This probably breaks vobsub behaviour with timestamp wrapping though.
Positive values for sub delay now delay subtitles compared to video,
where before the effect was in the opposite direction.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31663 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'spudec.c')
-rw-r--r-- | spudec.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -624,6 +624,7 @@ void spudec_heartbeat(void *this, unsigned int pts100) spudec_handle_t *spu = (spudec_handle_t*) this; spu->now_pts = pts100; + // TODO: detect and handle broken timestamps (e.g. due to wrapping) while (spu->queue_head != NULL && pts100 >= spu->queue_head->start_pts) { packet_t *packet = spudec_dequeue_packet(spu); spu->start_pts = packet->start_pts; |