blob: d821e2863b4490996790542b8db21f38619c2536 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$FreeBSD$
--- disc/vcdinfo.py.orig Thu Jun 10 20:56:21 2004
+++ disc/vcdinfo.py Thu Jun 10 20:56:59 2004
@@ -62,9 +62,9 @@
# brute force reading of the device to find out if it is a VCD
f = open(device,'rb')
- f.seek(32808, 0)
- buffer = f.read(50000)
- f.close()
+ f.seek(32768, 0) # FreeBSD requires seeking to a 2048 multiple boundary.
+ buffer = f.read(50040) # Read 40 more to compensate for above seek.
+ f.close()
if buffer.find('SVCD') > 0 and buffer.find('TRACKS.SVD') > 0 and \
buffer.find('ENTRIES.SVD') > 0:
|