Kaydet (Commit) f3f75313 authored tarafından Jack Jansen's avatar Jack Jansen

Changed setpf so it understands old-style packfactors

üst 18c9a4f8
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment