diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2009-04-30 12:06:34 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2009-04-30 12:06:34 +0000 |
commit | ce1d9c851cf73d33a99562a9d4ddb435fbc73228 (patch) | |
tree | a4066aeefc73b3e2fd7dff5dea2a1b240c770fc3 /libavcodec/avpacket.c | |
parent | f0a75e66b94c671f62357bdadf64d857f92f8f42 (diff) | |
download | ffmpeg-ce1d9c851cf73d33a99562a9d4ddb435fbc73228.tar.gz |
Export av_free_packet().
Originally committed as revision 18719 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/avpacket.c')
-rw-r--r-- | libavcodec/avpacket.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c index 194324713f..5bea639d66 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; + } +} |