From: Jack Jansen Date: Tue, 28 Sep 1993 15:28:44 +0000 (+0000) Subject: Sanity check for compress files. X-Git-Tag: v1.0.1~211 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=264117295ef1bf76a8606a9d0cc972109e0143e0;p=thirdparty%2FPython%2Fcpython.git Sanity check for compress files. --- diff --git a/Demo/sgi/video/VFile.py b/Demo/sgi/video/VFile.py index 0c8aa523029a..bc7e68efcadc 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()