diff options
author | Philipp Hagemeister <[email protected]> | 2014-11-17 04:29:34 +0100 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2014-11-17 04:29:34 +0100 |
commit | a4bb83956cf3aa4f569c30b4d144b4fb327c7b56 (patch) | |
tree | e2f869172856e6d2808e813646bd4ca7b419bccd /youtube_dl/swfinterp.py | |
parent | eb5376044ca2bb86a61c70ce1905992a0e5d25bd (diff) | |
download | youtube-dl-a4bb83956cf3aa4f569c30b4d144b4fb327c7b56.tar.gz youtube-dl-a4bb83956cf3aa4f569c30b4d144b4fb327c7b56.zip |
[swfinterp] Implement pushtrue and pushfalse opcodes
Diffstat (limited to 'youtube_dl/swfinterp.py')
-rw-r--r-- | youtube_dl/swfinterp.py | 4 |
1 files changed, 4 insertions, 0 deletions
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) |