提交 342474ab 编写于 作者: M Michael Niedermayer

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

Originally committed as revision 2013 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册