From: Philipp Hagemeister Date: Mon, 17 Nov 2014 03:29:34 +0000 (+0100) Subject: [swfinterp] Implement pushtrue and pushfalse opcodes X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=a4bb83956cf3aa4f569c30b4d144b4fb327c7b56;p=youtube-dl [swfinterp] Implement pushtrue and pushfalse opcodes --- 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)