changeset 9584:e30999f7a631 libavcodec

Export av_free_packet().
author ramiro
date Thu, 30 Apr 2009 12:06:34 +0000
parents 26ccdc910898
children 5e1d9508b62f
files avcodec.h avpacket.c
diffstat 2 files changed, 10 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/avcodec.h	Thu Apr 30 10:21:22 2009 +0000
+++ b/avcodec.h	Thu Apr 30 12:06:34 2009 +0000
@@ -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 @@
  *
  * @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 */
 
--- a/avpacket.c	Thu Apr 30 10:21:22 2009 +0000
+++ b/avpacket.c	Thu Apr 30 12:06:34 2009 +0000
@@ -87,3 +87,11 @@
     }
     return 0;
 }
+
+void av_free_packet(AVPacket *pkt)
+{
+    if (pkt) {
+        if (pkt->destruct) pkt->destruct(pkt);
+        pkt->data = NULL; pkt->size = 0;
+    }
+}