avcodec/avpacket: clear side_data_elems
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 12 Sep 2016 11:13:42 +0000 (13:13 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 28 Sep 2016 12:23:06 +0000 (14:23 +0200)
commitc2087fc48b46ac478944b4e6c59ae2a3a05da0e1
treeb5a71160a61ced046729337a5acd78822e94b7c4
parent21a979773783bb4e1baa2597150f25151328c93f
avcodec/avpacket: clear side_data_elems

Fixes null pointer dereference

Found-by: 连一汉 <lianyihan@360.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 5e1bf9d8c0d2cdbbf17b06a5dfdf87a635b3203b)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/avpacket.c