Mercurial > libavformat.hg
diff avformat.h @ 2139:12a46571c0c9 libavformat
Export av_init_packet
| author | ramiro |
|---|---|
| date | Mon, 04 Jun 2007 16:52:02 +0000 |
| parents | 02150368fd80 |
| children | 5b2736d3ac57 |
line wrap: on
line diff
--- a/avformat.h Mon Jun 04 14:54:33 2007 +0000 +++ b/avformat.h Mon Jun 04 16:52:02 2007 +0000 @@ -57,16 +57,7 @@ void av_destruct_packet(AVPacket *pkt); /* initialize optional fields of a packet */ -static inline void av_init_packet(AVPacket *pkt) -{ - pkt->pts = AV_NOPTS_VALUE; - pkt->dts = AV_NOPTS_VALUE; - pkt->pos = -1; - pkt->duration = 0; - pkt->flags = 0; - pkt->stream_index = 0; - pkt->destruct= av_destruct_packet_nofree; -} +void av_init_packet(AVPacket *pkt); /** * Allocate the payload of a packet and intialized its fields to default values.
