summaryrefslogtreecommitdiffstats
path: root/spudec.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-07-10 12:53:05 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:14:43 +0200
commitd6322407c503bbca1f1bb48e06e275f7b610a3a8 (patch)
treec91fb481adc01438c39ace4ace6c5e0ddf30dfdd /spudec.c
parent1882a37adb50774089d5d508ef9910d4b2a30db4 (diff)
downloadmpv-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/spudec.c b/spudec.c
index 7589c2ccda..84af67e563 100644
--- a/spudec.c
+++ b/spudec.c
@@ -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;