Mercurial > mplayer.hg
view DOCS/tech/mpsub.sub @ 32972:fbaae7fe1a13
Fix several issues with Translate().
1. The "Unsafe!" comment has been removed, because the strings passed
to the function are strcpy'd.
2. The needless memsets (one of which with wrong size) have been removed
in favor of a sufficiently simple initialization of trbuf.
3. The array indices are unsigned now, and the manual optimization of
having strlen() outside the for loop has been removed in favor of
optimization performed by the compiler.
4. There is a check now to prevent an out-of-bounds array access.
author | ib |
---|---|
date | Tue, 08 Mar 2011 20:56:51 +0000 |
parents | 0ad2da052b2e |
children |
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!