diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2007-06-04 20:52:02 +0400 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2007-06-04 20:52:02 +0400 |
commit | 659596f0029e7e8aae5ca03d771895f696cfc225 (patch) | |
tree | c19f7c87d56acb5d9f7e0c7104a14a7f5b98a1ee /libavformat/avformat.h | |
parent | 04ec18b8b3367219feb9c116d3153b3389ecdcc9 (diff) |
Export av_init_packet
Originally committed as revision 9211 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index d63966662e..51dbca3b1f 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -57,16 +57,7 @@ void av_destruct_packet_nofree(AVPacket *pkt); 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. |