From a4bb83956cf3aa4f569c30b4d144b4fb327c7b56 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Mon, 17 Nov 2014 04:29:34 +0100 Subject: [PATCH] [swfinterp] Implement pushtrue and pushfalse opcodes --- youtube_dl/swfinterp.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/youtube_dl/swfinterp.py b/youtube_dl/swfinterp.py index 1e8b26ecc..dd4dd060a 100644 --- a/youtube_dl/swfinterp.py +++ b/youtube_dl/swfinterp.py @@ -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) -- 2.39.5