[MPlayer-dev-eng] [PATCH] bug with title_start and title_end in the MRL dvd://

Robert Henney robh at rut.org
Thu Jul 10 20:24:45 CEST 2008


I dug up the old patch and adjusted for current svn.  below is the text 
of the message I submitted with the original patch.

| this adds 3 minor changes.
|
| handling of play ranges with 3-digit title numbers is handled correctly.
| eg. dvd://99-100 
| nope, I've yet to see a dvd with that many titles, but I've seen ones
| that have gotten close.
|
| ranges that end on the same title they begin at are handled as would be
| expected and are not taken to be invalid.  
| eg. dvd://4-4
|
| reliance on the uninitialized state of the last byte in the string 
| buffer removed, along with magic number.

Rick pointed out that the last statement isn't totally correct, as
snprintf always null-terminates.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: parsefix.diff
Type: text/x-diff
Size: 1234 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080710/28242ceb/attachment.diff>


More information about the MPlayer-dev-eng mailing list