[swfinterp] Implement pushtrue and pushfalse opcodes
authorPhilipp Hagemeister <phihag@phihag.de>
Mon, 17 Nov 2014 03:29:34 +0000 (04:29 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Mon, 17 Nov 2014 03:29:34 +0000 (04:29 +0100)
youtube_dl/swfinterp.py

index 1e8b26ecc4329282efbd85050f84007ab43ea1e1..dd4dd060ad1fa8041c6351408ab9f79996390e0c 100644 (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)