summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1993-09-28 15:28:44 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1993-09-28 15:28:44 (GMT)
commit264117295ef1bf76a8606a9d0cc972109e0143e0 (patch)
tree492ffdc81238c0dd20327788ab285eeb97a6453f
parentbab2ca3eb100f02eb3d5b6e9e164b7b0ce936a1d (diff)
downloadcpython-264117295ef1bf76a8606a9d0cc972109e0143e0.zip
cpython-264117295ef1bf76a8606a9d0cc972109e0143e0.tar.gz
cpython-264117295ef1bf76a8606a9d0cc972109e0143e0.tar.bz2
Sanity check for compress files.
-rwxr-xr-xDemo/sgi/video/VFile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/sgi/video/VFile.py b/Demo/sgi/video/VFile.py
index 0c8aa52..bc7e68e 100755
--- a/Demo/sgi/video/VFile.py
+++ b/Demo/sgi/video/VFile.py
@@ -296,7 +296,7 @@ class VideoParams:
self.setsize(values[1], values[2])
(self.c0bits, self.c1bits, self.c2bits, \
self.offset, self.chrompack) = values[4:9]
- if self.format == 'compress':
+ if self.format == 'compress' and len(values) > 9:
self.compressheader = values[9]
self.setderived()