summaryrefslogtreecommitdiffstats
path: root/usr.sbin/cdcontrol
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2002-09-23 15:00:23 +0000
committermaxim <maxim@FreeBSD.org>2002-09-23 15:00:23 +0000
commit236b22fa5bb198d3dbd732b1e06467b9f95588f7 (patch)
tree19f0906f2686a2da5b18ed2d4f751596b77035d1 /usr.sbin/cdcontrol
parent15867e80d13c71bcf3377e51980dd4a31019c671 (diff)
downloadFreeBSD-src-236b22fa5bb198d3dbd732b1e06467b9f95588f7.zip
FreeBSD-src-236b22fa5bb198d3dbd732b1e06467b9f95588f7.tar.gz
Do not add a start offset time to the track duration time.
Submitted by: Dmitry Afanasiev, <KOT@MATPOCKuH.SPb.Ru> MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/cdcontrol')
-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 7b90e34..f497c52 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,
OpenPOWER on IntegriCloud