[MPlayer-dev-eng] [PATCH]time stamps in spudec.c

Arne Driescher driescher at mpi-magdeburg.mpg.de
Fri Nov 28 12:43:14 CET 2003


This patch fixes a bug in the calculation of time stamps when decoding
subtitles.

Explenation:
A command like start_display/stop_display/force_display for a subtitle gets 
an argument that specifies the delay when the command should be
executed. (E.g. for start_display this delay is most often 0 so that
subtitle start time is equal to pts. However stop_display is normally
the same pts but the delay is greater than 0.)
The time offset is based on the 90KHz clock divided by 1024.
In the current version the delay is calculated as ticks in the 90KHz
clock and not in pts100 units as it should be.

Visible results:
When seeking in movie with enabled subtitles (DVD or VobSub) the subtitle 
should now disappear even if no other subtitle is found.

Greetings,
Arne

P.S. This bug was found by Scott T. Smith in subtitleripper and I only adaped 
it to mplayer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: time_stamp_bug.patch
Type: text/x-diff
Size: 1706 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20031128/5c3b030f/attachment.patch>


More information about the MPlayer-dev-eng mailing list