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>
Mon, 12 Sep 2016 21:53:07 +0000 (23:53 +0200)
commit5e1bf9d8c0d2cdbbf17b06a5dfdf87a635b3203b
treec2de411b5aae383a155ea8f3cbaffc10543769d6
parentdca03ec5f4d5ca28efc8a80c591412fab5821d81
avcodec/avpacket: clear side_data_elems

Fixes null pointer dereference

Found-by: 连一汉 <lianyihan@360.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/avpacket.c