Mercurial > mplayer.hg
view DOCS/tech/mpsub.sub @ 23572:a00685941686
demux_mkv very long seek fix
The seek code searching for the closest position in the index used
"int64_t min_diff=0xFFFFFFFL" as the initial "further from the goal
than any real alternative" value. The unit is milliseconds so seeks more
than about 75 hours past the end of the file would fail to recognize the
last index position as the best match. This was triggered in practice by
chapter seek code which apparently uses a seek of 1000000000 seconds
forward to mean "seek to the end". The practical effect was that trying
to seek to the next chapter in a file without chapters made MPlayer
block until it finished reading the file from the current position to
the end.
Fixed by increasing the initial value from FFFFFFF to FFFFFFFFFFFFFFF.
author | uau |
---|---|
date | Wed, 20 Jun 2007 18:19:03 +0000 |
parents | 720bf2e5c408 |
children | 0ad2da052b2e |
line wrap: on
line source
TITLE=Weird Al Yankovic - The Saga Begins (clip) # just to be informative (maybe future # use?) FILE=14233792,7972c637f619e01854ecb453b7339e3f # size,md5 AUTHOR=Gabucino TYPE=VIDEO # maybe AUDIO in future (for displaying # mp3 lyrics while playing or whatever) FORMAT=TIME # this file contains measures based on # TIME, not frames. # if FORMAT is a number, then it's frame based, i.e.: # FORMAT=25 NOTE=MPlayerSub test file v0.1 # first number : wait this much after previous subtitle disappeared # second number : display the current subtitle for this many seconds 15 3 A long, long time ago... 0 3 in a galaxy far away... 0 3 Naboo was under an attack. 1 2.5 And I thought me and Qui-Gon Jinn could 0 2.5 talk the Federation into 0 4 ...maybe cutting them a little slack. 2 3 But their response, it didn't thrill us, 0 3 They locked the doors, and tried to kill us. 0 2.5 We escaped from that gas, 0 3.5 then met Jar-jar and Boss-Nass. 1 6 We took a bongo from the scene and we went to Theed to see the Queen. 0 5 We all wound' up on Tatooine. 0 6 That's where, we've found this boy. 0 4 Oh my, my this here Anakin guy, 0 5 maybe Vader someday later now he's just a small fry. 0 4 And he left his home and kissed his mommy goodbye, 0 5 singing "Soon I'm gonna be a Jedi!" 6 6 Did you know this junkyard slave isn't even old enough to shave, 0 3 but he can use the Force, they say. 1 6 Ahh, do you see him hitting on the queen though he's just nine and she's fourteen 0 6 yeah, he's probably gonna marry her, someday!