diff options
author | wm4 <wm4@nowhere> | 2015-02-04 15:17:49 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-04 15:17:49 +0100 |
commit | 5bce4664beaddbcc256d333816ad6cdddf16a83d (patch) | |
tree | 0f9940143a203df44174d08fc72b737e19371979 /TOOLS | |
parent | b715fb6df19b7d359073e93654d736f66085be91 (diff) | |
download | mpv-5bce4664beaddbcc256d333816ad6cdddf16a83d.tar.bz2 mpv-5bce4664beaddbcc256d333816ad6cdddf16a83d.tar.xz |
stream_cdda: fix bugs in chapter time retrieval
Looks like a bunch of off-by-one errors.
The track number was mistakenly offset by 1 - this shifted all chapters
by one, and make the first chapter start on the second track (so the
"chapter" property returned -1 in the first track since it was before
the first chapter).
Also, the calculation of the sector destination was messed up. This
comes from commit 32d818f0, where I apparently attempted to calculate
the position to one byte before the section, but unfortunately math
doesn't work this way and it was nonsense. Just drop this idea; while it
may help with seeking (probably...), it also returns slightly different
times. The user shall use hr-seeks if accurate seeking is required.
Hopefully fixes #1560.
Diffstat (limited to 'TOOLS')
0 files changed, 0 insertions, 0 deletions