From f3f753132a863e4b6f39e749e7e5e7ab4cd6d7a1 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Tue, 1 Jun 1993 12:04:08 +0000 Subject: Changed setpf so it understands old-style packfactors --- Demo/sgi/video/VFile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Demo/sgi/video/VFile.py b/Demo/sgi/video/VFile.py index 2569a91..016115a 100755 --- a/Demo/sgi/video/VFile.py +++ b/Demo/sgi/video/VFile.py @@ -272,6 +272,8 @@ class VideoParams: def setpf(self, pf): if self.frozen: raise CallError + if type(pf) == type(1): + pf = (pf, pf) if type(pf) is not type(()) or len(pf) <> 2: raise CallError self.packfactor = pf self.setderived() -- cgit v0.12