From 3fbd27f73ef1f3507443d0e0907a4c0b19a63ed8 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Thu, 17 Jul 2014 23:22:49 +0200 Subject: [PATCH] [youtube] SWF parser: Add opcode 86 Yes, I know we need 96, but an implementation of 86 could help avoid a similar issue. --- youtube_dl/extractor/youtube.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 5449df8e0..c2c4fd7e8 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -799,6 +799,13 @@ def resfunc(args): raise NotImplementedError( u'Unsupported (void) property %r on %r' % (mname, obj)) + elif opcode == 86: # newarray + arg_count = u30(coder) + arr = [] + for i in range(arg_count): + arr.append(stack.pop()) + arr = arr[::-1] + stack.append(arr) elif opcode == 93: # findpropstrict index = u30(coder) mname = multinames[index]