From 5631d6b825037d674a16d8362079a8a894b9dd63 Mon Sep 17 00:00:00 2001 From: ramiro Date: Thu, 30 Apr 2009 12:06:34 +0000 Subject: [PATCH] Export av_free_packet(). git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18719 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- libavcodec/avcodec.h | 10 ++-------- libavcodec/avpacket.c | 8 ++++++++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index a857baf72..73181c1d1 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -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 */ diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c index 194324713..5bea639d6 100644 --- a/libavcodec/avpacket.c +++ b/libavcodec/avpacket.c @@ -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; + } +} -- 2.39.2