Make sure av_new_packet() initializes the data and destruct pointers.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 11 Dec 2009 21:49:30 +0000 (21:49 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 11 Dec 2009 21:49:30 +0000 (21:49 +0000)
commita0b468f5db92daf1854c49d920169ed39e9cfb1b
treec00848c82b6780ddcf51dc095f591f8b0fddebe8
parent15a316c0146106ac627fa67ddaa639f75a4eccce
Make sure av_new_packet() initializes the data and destruct pointers.
Some code does call av_free_packet() on failed av_new_packets(), this
prevents the freeing of uninitialized pointers.

Originally committed as revision 20801 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/avpacket.c