avformat/rtmppkt: Convert ff_amf_get_field_value() to bytestream2
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 28 Jul 2017 12:37:26 +0000 (14:37 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 29 Jul 2017 12:17:59 +0000 (14:17 +0200)
commit8f9cbb3b7e844f80e07caac40ac14a64aa938c99
treebb887aaa671b1cc48c1d9e05fdfef13397ae5ede
parentb566ab49ca84d7e83a40638e066b33cb5a1ef1ac
avformat/rtmppkt: Convert ff_amf_get_field_value() to bytestream2

Fixes: out of array accesses

Found-by: JunDong Xie of Ant-financial Light-Year Security Lab
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit ffcc82219cef0928bed2d558b19ef6ea35634130)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/rtmppkt.c