Export av_free_packet().

Originally committed as revision 18719 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Ramiro Polla 2009-04-30 12:06:34 +00:00
parent f0a75e66b9
commit ce1d9c851c
2 changed files with 10 additions and 8 deletions

View File

@ -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 */

View File

@ -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;
}
}