diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-07-04 23:48:20 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-07-04 23:48:20 +0000 |
commit | 342474abd9409b50a0809cf573590fbcd005c081 (patch) | |
tree | c9fad550723cbefa9046a382caec70a1e1123fa9 /libavformat | |
parent | e71ea8b251463fb636d5dc15a53cef808d2c6768 (diff) | |
download | ffmpeg-342474abd9409b50a0809cf573590fbcd005c081.tar.gz |
av_free_packet SEGV fix by (Arthur van Hoff (javanator))
Originally committed as revision 2013 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/avformat.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 29ca9875d8..e4748bece2 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -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); + } } /*************************************************/ |