mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-26 13:15:51 +01:00
[swfinterp] Implement pushtrue and pushfalse opcodes
This commit is contained in:
parent
eb5376044c
commit
a4bb83956c
@ -426,6 +426,10 @@ def resfunc(args):
|
|||||||
elif opcode == 36: # pushbyte
|
elif opcode == 36: # pushbyte
|
||||||
v = _read_byte(coder)
|
v = _read_byte(coder)
|
||||||
stack.append(v)
|
stack.append(v)
|
||||||
|
elif opcode == 38: # pushtrue
|
||||||
|
stack.append(True)
|
||||||
|
elif opcode == 39: # pushfalse
|
||||||
|
stack.append(False)
|
||||||
elif opcode == 42: # dup
|
elif opcode == 42: # dup
|
||||||
value = stack[-1]
|
value = stack[-1]
|
||||||
stack.append(value)
|
stack.append(value)
|
||||||
|
Loading…
Reference in New Issue
Block a user