1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-20 19:32:50 +08:00

[swfinterp] Implement pushtrue and pushfalse opcodes

This commit is contained in:
Philipp Hagemeister 2014-11-17 04:29:34 +01:00
parent eb5376044c
commit a4bb83956c

View File

@ -426,6 +426,10 @@ class SWFInterpreter(object):
elif opcode == 36: # pushbyte
v = _read_byte(coder)
stack.append(v)
elif opcode == 38: # pushtrue
stack.append(True)
elif opcode == 39: # pushfalse
stack.append(False)
elif opcode == 42: # dup
value = stack[-1]
stack.append(value)