aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-07-04 23:48:20 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-07-04 23:48:20 +0000
commit342474abd9409b50a0809cf573590fbcd005c081 (patch)
treec9fad550723cbefa9046a382caec70a1e1123fa9
parente71ea8b251463fb636d5dc15a53cef808d2c6768 (diff)
downloadffmpeg-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
-rw-r--r--libavformat/avformat.h4
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);
+ }
}
/*************************************************/