[FFmpeg-cvslog] r18719 - in trunk/libavcodec: avcodec.h avpacket.c

ramiro subversion
Thu Apr 30 14:06:36 CEST 2009


Author: ramiro
Date: Thu Apr 30 14:06:34 2009
New Revision: 18719

Log:
Export av_free_packet().

Modified:
   trunk/libavcodec/avcodec.h
   trunk/libavcodec/avpacket.c

Modified: trunk/libavcodec/avcodec.h
==============================================================================
--- trunk/libavcodec/avcodec.h	Thu Apr 30 12:21:22 2009	(r18718)
+++ trunk/libavcodec/avcodec.h	Thu Apr 30 14:06:34 2009	(r18719)
@@ -30,7 +30,7 @@
 #include "libavutil/avutil.h"
 
 #define LIBAVCODEC_VERSION_MAJOR 52
-#define LIBAVCODEC_VERSION_MINOR 27
+#define LIBAVCODEC_VERSION_MINOR 28
 #define LIBAVCODEC_VERSION_MICRO  0
 
 #define LIBAVCODEC_VERSION_INT  AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
@@ -2681,13 +2681,7 @@ int av_dup_packet(AVPacket *pkt);
  *
  * @param pkt packet to free
  */
-static inline void av_free_packet(AVPacket *pkt)
-{
-    if (pkt) {
-        if (pkt->destruct) pkt->destruct(pkt);
-        pkt->data = NULL; pkt->size = 0;
-    }
-}
+void av_free_packet(AVPacket *pkt);
 
 /* resample.c */
 

Modified: trunk/libavcodec/avpacket.c
==============================================================================
--- trunk/libavcodec/avpacket.c	Thu Apr 30 12:21:22 2009	(r18718)
+++ trunk/libavcodec/avpacket.c	Thu Apr 30 14:06:34 2009	(r18719)
@@ -87,3 +87,11 @@ int av_dup_packet(AVPacket *pkt)
     }
     return 0;
 }
+
+void av_free_packet(AVPacket *pkt)
+{
+    if (pkt) {
+        if (pkt->destruct) pkt->destruct(pkt);
+        pkt->data = NULL; pkt->size = 0;
+    }
+}



More information about the ffmpeg-cvslog mailing list