# HG changeset patch # User ramiro # Date 1241093194 0 # Node ID e30999f7a63105901203f2a9fdb2d5a8e70f4529 # Parent 26ccdc9108981655013ba1126996d6009109e40a Export av_free_packet(). diff -r 26ccdc910898 -r e30999f7a631 avcodec.h --- 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 */ diff -r 26ccdc910898 -r e30999f7a631 avpacket.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; + } +}