projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb53760
)
[swfinterp] Implement pushtrue and pushfalse opcodes
author
Philipp Hagemeister
<phihag@phihag.de>
Mon, 17 Nov 2014 03:29:34 +0000
(
04:29
+0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Mon, 17 Nov 2014 03:29:34 +0000
(
04:29
+0100)
youtube_dl/swfinterp.py
patch
|
blob
|
history
diff --git
a/youtube_dl/swfinterp.py
b/youtube_dl/swfinterp.py
index 1e8b26ecc4329282efbd85050f84007ab43ea1e1..dd4dd060ad1fa8041c6351408ab9f79996390e0c 100644
(file)
--- 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)