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
3030 #include "libavutil/avutil.h"
3131
3232 #define LIBAVCODEC_VERSION_MAJOR 52
33−#define LIBAVCODEC_VERSION_MINOR 27
33+#define LIBAVCODEC_VERSION_MINOR 28
3434 #define LIBAVCODEC_VERSION_MICRO 0
3535
3636 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
@@ -2681,13 +2681,7 @@ int av_dup_packet(AVPacket *pkt); · 2644 unmodified lines
26812681 *
26822682 * @param pkt packet to free
26832683 */
2684−static inline void 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−}
2684+void av_free_packet(AVPacket *pkt);
26912685
26922686 /* resample.c */
26932687
libavcodec/avpacket.c+8−0
@@ -87,3 +87,11 @@ int av_dup_packet(AVPacket *pkt) · 86 unmodified lines
8787 }
8888 return 0;
8989 }
90+
91+void 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