From 659596f0029e7e8aae5ca03d771895f696cfc225 Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Mon, 4 Jun 2007 16:52:02 +0000 Subject: [PATCH] Export av_init_packet Originally committed as revision 9211 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/avformat.h | 11 +---------- libavformat/utils.c | 11 +++++++++++ 2 files changed, 12 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. 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;