History

Export av_free_packet().

Originally committed as revision 18719 to svn://svn.ffmpeg.org/ffmpeg/trunk

Ramiro Polla committed 17 years ago

Commit ce1d9c81 parent f0a75e62 files · +10 −8Browse files

Unified · Split

2 files
  1. libavcodec/avcodec.h +2 −8
  2. libavcodec/avpacket.c +8 −0
libavcodec/avcodec.h+2−8
@@ -30,7 +30,7 @@ · 29 unmodified lines
30#include "libavutil/avutil.h"30#include "libavutil/avutil.h"
31 31
32#define LIBAVCODEC_VERSION_MAJOR 5232#define LIBAVCODEC_VERSION_MAJOR 52
33#define LIBAVCODEC_VERSION_MINOR 2733#define LIBAVCODEC_VERSION_MINOR 28
34#define LIBAVCODEC_VERSION_MICRO 034#define LIBAVCODEC_VERSION_MICRO 0
35 35
36#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \36#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
@@ -2681,13 +2681,7 @@ int av_dup_packet(AVPacket *pkt); · 2644 unmodified lines
2681 *2681 *
2682 * @param pkt packet to free2682 * @param pkt packet to free
2683 */2683 */
2684static inline void av_free_packet(AVPacket *pkt)2684void av_free_packet(AVPacket *pkt);
2685{
2686 if (pkt) {
2687 if (pkt->destruct) pkt->destruct(pkt);
2688 pkt->data = NULL; pkt->size = 0;
2689 }
2690}
2691 2685
2692/* resample.c */2686/* resample.c */
2693 2687
libavcodec/avpacket.c+8−0
@@ -87,3 +87,11 @@ int av_dup_packet(AVPacket *pkt) · 86 unmodified lines
87 }87 }
88 return 0;88 return 0;
89}89}
90
91void av_free_packet(AVPacket *pkt)
92{
93 if (pkt) {
94 if (pkt->destruct) pkt->destruct(pkt);
95 pkt->data = NULL; pkt->size = 0;
96 }
97}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t