Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f3f7531

Browse files
committed
Changed setpf so it understands old-style packfactors
1 parent 18c9a4f commit f3f7531

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Demo/sgi/video/VFile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,8 @@ def getformat(self):
272272

273273
def setpf(self, pf):
274274
if self.frozen: raise CallError
275+
if type(pf) == type(1):
276+
pf = (pf, pf)
275277
if type(pf) is not type(()) or len(pf) <> 2: raise CallError
276278
self.packfactor = pf
277279
self.setderived()

0 commit comments

Comments
 (0)