mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Changed setpf so it understands old-style packfactors
This commit is contained in:
parent
18c9a4f8ea
commit
f3f753132a
1 changed files with 2 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue