Commit 342474ab authored by Michael Niedermayer's avatar Michael Niedermayer

av_free_packet SEGV fix by (Arthur van Hoff (javanator))

Originally committed as revision 2013 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent e71ea8b2
......@@ -45,7 +45,9 @@ int av_new_packet(AVPacket *pkt, int size);
*/
static inline void av_free_packet(AVPacket *pkt)
{
pkt->destruct(pkt);
if (pkt && pkt->destruct) {
pkt->destruct(pkt);
}
}
/*************************************************/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment