Files
mpv/stream
wm4 5bce4664be 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.
2015-02-04 15:17:49 +01:00
..
2014-11-26 21:21:56 +01:00
2014-11-26 21:21:56 +01:00
2013-12-21 21:43:16 +01:00
2014-04-13 18:03:01 +02:00
2015-01-06 20:19:49 +01:00
2015-01-06 20:19:49 +01:00
2014-11-21 09:58:09 +01:00
2014-09-13 16:09:51 +02:00
2014-06-11 00:39:14 +02:00
2015-01-19 21:30:05 +01:00
2014-11-26 21:21:56 +01:00
2014-06-11 00:39:14 +02:00
2014-06-11 00:39:14 +02:00
2014-06-11 00:39:14 +02:00
2015-01-06 20:27:36 +01:00
2014-06-11 00:39:14 +02:00
2014-06-11 00:39:14 +02:00
2015-01-21 12:11:37 +01:00
2014-08-28 12:02:50 +02:00
2014-07-05 17:07:15 +02:00
2014-04-13 18:03:01 +02:00
2014-11-26 21:21:56 +01:00