aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMaxim Konovalov <maxim@FreeBSD.org>2002-09-23 15:00:23 +0000
committerMaxim Konovalov <maxim@FreeBSD.org>2002-09-23 15:00:23 +0000
commit8d9b45ee328ca81a65ce895adcc360adf918f5f4 (patch)
tree19f0906f2686a2da5b18ed2d4f751596b77035d1 /usr.sbin
parenta7042915ba4b1f46aab268b465f4c4c6422f1b34 (diff)
downloadsrc-8d9b45ee328ca81a65ce895adcc360adf918f5f4.tar.gz
src-8d9b45ee328ca81a65ce895adcc360adf918f5f4.zip
Do not add a start offset time to the track duration time.
Submitted by: Dmitry Afanasiev, <KOT@MATPOCKuH.SPb.Ru> MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=103861
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/cdcontrol/cdcontrol.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/cdcontrol/cdcontrol.c b/usr.sbin/cdcontrol/cdcontrol.c
index 7b90e3409c66..f497c5240aa2 100644
--- a/usr.sbin/cdcontrol/cdcontrol.c
+++ b/usr.sbin/cdcontrol/cdcontrol.c
@@ -1015,7 +1015,8 @@ void prtrack (struct cd_toc_entry *e, int lastflag)
else
next = ntohl(e[1].addr.lba);
len = next - block;
- lba2msf (len, &m, &s, &f);
+ /* Take into account a start offset time. */
+ lba2msf (len - 150, &m, &s, &f);
/* Print duration, block, length, type */
printf ("%2d:%02d.%02d %6d %6d %5s\n", m, s, f, block, len,