Commit 5631d6b8 authored by ramiro's avatar ramiro

Export av_free_packet().

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18719 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c708220b
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include "libavutil/avutil.h" #include "libavutil/avutil.h"
#define LIBAVCODEC_VERSION_MAJOR 52 #define LIBAVCODEC_VERSION_MAJOR 52
#define LIBAVCODEC_VERSION_MINOR 27 #define LIBAVCODEC_VERSION_MINOR 28
#define LIBAVCODEC_VERSION_MICRO 0 #define LIBAVCODEC_VERSION_MICRO 0
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
...@@ -2681,13 +2681,7 @@ int av_dup_packet(AVPacket *pkt); ...@@ -2681,13 +2681,7 @@ int av_dup_packet(AVPacket *pkt);
* *
* @param pkt packet to free * @param pkt packet to free
*/ */
static inline void av_free_packet(AVPacket *pkt) void av_free_packet(AVPacket *pkt);
{
if (pkt) {
if (pkt->destruct) pkt->destruct(pkt);
pkt->data = NULL; pkt->size = 0;
}
}
/* resample.c */ /* resample.c */
......
...@@ -87,3 +87,11 @@ int av_dup_packet(AVPacket *pkt) ...@@ -87,3 +87,11 @@ int av_dup_packet(AVPacket *pkt)
} }
return 0; return 0;
} }
void av_free_packet(AVPacket *pkt)
{
if (pkt) {
if (pkt->destruct) pkt->destruct(pkt);
pkt->data = NULL; pkt->size = 0;
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment