mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
av_free_packet SEGV fix by (Arthur van Hoff (javanator))
Originally committed as revision 2013 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
e71ea8b251
commit
342474abd9
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/*************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user