[FFmpeg-cvslog] r9211 - in trunk/libavformat: avformat.h utils.c

ramiro subversion
Mon Jun 4 18:52:03 CEST 2007


Author: ramiro
Date: Mon Jun  4 18:52:02 2007
New Revision: 9211

Log:
Export av_init_packet

Modified:
   trunk/libavformat/avformat.h
   trunk/libavformat/utils.c

Modified: trunk/libavformat/avformat.h
==============================================================================
--- trunk/libavformat/avformat.h	(original)
+++ trunk/libavformat/avformat.h	Mon Jun  4 18:52:02 2007
@@ -57,16 +57,7 @@ void av_destruct_packet_nofree(AVPacket 
 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.

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	(original)
+++ trunk/libavformat/utils.c	Mon Jun  4 18:52:02 2007
@@ -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;




More information about the ffmpeg-cvslog mailing list