avcodec/avpacket: clear priv in av_init_packet()
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 24 Feb 2016 14:48:28 +0000 (15:48 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 28 Apr 2016 01:47:12 +0000 (03:47 +0200)
commitc6950985cb91ba42a920fbd6d7ae6a9591c29728
treedc2bb2b7bd71d8162a015131ca33ecfd87c9f03d
parent751e525757512ca65d0b98b4f0ae57b1a489ee8b
avcodec/avpacket: clear priv in av_init_packet()

This should fix leaving uninitialized pointers in priv which can confuse
user applications.
See: https://github.com/golang/go/issues/14426

Only or release branches

Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/avpacket.c