A feature-rich command-line audio/video downloader
[swfinterp] Implement bitand and pushshort operators
Philipp Hagemeister162f54eca6b9
diff --git a/youtube_dl/swfinterp.py b/youtube_dl/swfinterp.pyindex 7369c94fca..fc704603ab 100644--- a/youtube_dl/swfinterp.py+++ b/youtube_dl/swfinterp.py@@ -451,6 +451,9 @@ class SWFInterpreter(object):elif opcode == 36: # pushbytev = _read_byte(coder)stack.append(v)+ elif opcode == 37: # pushshort+ v = u30()+ stack.append(v)elif opcode == 38: # pushtruestack.append(True)elif opcode == 39: # pushfalse@@ -712,6 +715,13 @@ class SWFInterpreter(object):value1 = stack.pop()res = value1 % value2stack.append(res)+ elif opcode == 168: # bitand+ value2 = stack.pop()+ value1 = stack.pop()+ assert isinstance(value1, int)+ assert isinstance(value2, int)+ res = value1 & value2+ stack.append(res)elif opcode == 171: # equalsvalue2 = stack.pop()value1 = stack.pop()