Browse Source

Export av_free_packet().

Originally committed as revision 18719 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Ramiro Polla 17 years ago
parent
commit
ce1d9c851c
2 changed files with 10 additions and 8 deletions
  1. +2
    -8
      libavcodec/avcodec.h
  2. +8
    -0
      libavcodec/avpacket.c

+ 2
- 8
libavcodec/avcodec.h 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 */



+ 8
- 0
libavcodec/avpacket.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;
}
}

Loading…
Cancel
Save