Mercurial > libavformat.hg
comparison avformat.h @ 535:8430e4610971 libavformat
uninitalized variables
author | michael |
---|---|
date | Tue, 28 Sep 2004 21:09:25 +0000 |
parents | 59da52e5f5a5 |
children | 76c47c58064f |
comparison
equal
deleted
inserted
replaced
534:3846c006af2b | 535:8430e4610971 |
---|---|
40 void (*destruct)(struct AVPacket *); | 40 void (*destruct)(struct AVPacket *); |
41 void *priv; | 41 void *priv; |
42 } AVPacket; | 42 } AVPacket; |
43 #define PKT_FLAG_KEY 0x0001 | 43 #define PKT_FLAG_KEY 0x0001 |
44 | 44 |
45 void av_destruct_packet_nofree(AVPacket *pkt); | |
46 | |
45 /* initialize optional fields of a packet */ | 47 /* initialize optional fields of a packet */ |
46 static inline void av_init_packet(AVPacket *pkt) | 48 static inline void av_init_packet(AVPacket *pkt) |
47 { | 49 { |
48 pkt->pts = AV_NOPTS_VALUE; | 50 pkt->pts = AV_NOPTS_VALUE; |
49 pkt->dts = AV_NOPTS_VALUE; | 51 pkt->dts = AV_NOPTS_VALUE; |
50 pkt->duration = 0; | 52 pkt->duration = 0; |
51 pkt->flags = 0; | 53 pkt->flags = 0; |
52 pkt->stream_index = 0; | 54 pkt->stream_index = 0; |
55 pkt->destruct= av_destruct_packet_nofree; | |
53 } | 56 } |
54 | 57 |
55 int av_new_packet(AVPacket *pkt, int size); | 58 int av_new_packet(AVPacket *pkt, int size); |
56 int av_dup_packet(AVPacket *pkt); | 59 int av_dup_packet(AVPacket *pkt); |
57 | 60 |