Mercurial > libavformat.hg
diff avformat.h @ 535:8430e4610971 libavformat
uninitalized variables
author | michael |
---|---|
date | Tue, 28 Sep 2004 21:09:25 +0000 |
parents | 59da52e5f5a5 |
children | 76c47c58064f |
line wrap: on
line diff
--- a/avformat.h Tue Sep 28 09:55:44 2004 +0000 +++ b/avformat.h Tue Sep 28 21:09:25 2004 +0000 @@ -42,6 +42,8 @@ } AVPacket; #define PKT_FLAG_KEY 0x0001 +void av_destruct_packet_nofree(AVPacket *pkt); + /* initialize optional fields of a packet */ static inline void av_init_packet(AVPacket *pkt) { @@ -50,6 +52,7 @@ pkt->duration = 0; pkt->flags = 0; pkt->stream_index = 0; + pkt->destruct= av_destruct_packet_nofree; } int av_new_packet(AVPacket *pkt, int size);