[swfinterp] Implement equals opcode
[youtube-dl] / youtube_dl / swfinterp.py
index 0ce8474ca7ce96d77d05b9c9c5243a6632b69591..1e8b26ecc4329282efbd85050f84007ab43ea1e1 100644 (file)
@@ -629,6 +629,11 @@ class SWFInterpreter(object):
                     value1 = stack.pop()
                     res = value1 % value2
                     stack.append(res)
+                elif opcode == 171:  # equals
+                    value2 = stack.pop()
+                    value1 = stack.pop()
+                    result = value1 == value2
+                    stack.append(result)
                 elif opcode == 175:  # greaterequals
                     value2 = stack.pop()
                     value1 = stack.pop()