changeset 2139:12a46571c0c9 libavformat

Export av_init_packet
author ramiro
date Mon, 04 Jun 2007 16:52:02 +0000
parents ffa91b504cda
children 5b2736d3ac57
files avformat.h utils.c
diffstat 2 files changed, 12 insertions(+), 10 deletions(-) [+]
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.
--- a/utils.c	Mon Jun 04 14:54:33 2007 +0000
+++ b/utils.c	Mon Jun 04 16:52:02 2007 +0000
@@ -176,6 +176,17 @@
     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;