aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2007-06-04 16:52:02 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2007-06-04 16:52:02 +0000
commit659596f0029e7e8aae5ca03d771895f696cfc225 (patch)
treec19f7c87d56acb5d9f7e0c7104a14a7f5b98a1ee /libavformat/utils.c
parent04ec18b8b3367219feb9c116d3153b3389ecdcc9 (diff)
downloadffmpeg-659596f0029e7e8aae5ca03d771895f696cfc225.tar.gz
Export av_init_packet
Originally committed as revision 9211 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index ab7345ede2..d543461c81 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -176,6 +176,17 @@ void av_destruct_packet(AVPacket *pkt)
pkt->data = NULL; pkt->size = 0;
}
+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;
+}
+
int av_new_packet(AVPacket *pkt, int size)
{
uint8_t *data;