avformat/rtmppkt: Check for packet size mismatches
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 5 Dec 2016 10:14:51 +0000 (11:14 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 5 Dec 2016 20:30:12 +0000 (21:30 +0100)
commit7d57ca4d9a75562fa32e40766211de150f8b3ee7
treebff25318c87c520ef9e1e9868ef4495cd534f98d
parentd903b4e3ad4a81b3dd79f12c2f3b9cb16e511173
avformat/rtmppkt: Check for packet size mismatches

Fixes out of array access

Found-by: Paul Cher <paulcher@icloud.com>
Reviewed-by: Paul Cher <paulcher@icloud.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/rtmppkt.c