Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
ce1d9c85
Commit
ce1d9c85
authored
Apr 30, 2009
by
Ramiro Polla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export av_free_packet().
Originally committed as revision 18719 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
f0a75e66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
avcodec.h
libavcodec/avcodec.h
+2
-8
avpacket.c
libavcodec/avpacket.c
+8
-0
No files found.
libavcodec/avcodec.h
View file @
ce1d9c85
...
...
@@ -30,7 +30,7 @@
#include "libavutil/avutil.h"
#define LIBAVCODEC_VERSION_MAJOR 52
#define LIBAVCODEC_VERSION_MINOR 2
7
#define LIBAVCODEC_VERSION_MINOR 2
8
#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 */
...
...
libavcodec/avpacket.c
View file @
ce1d9c85
...
...
@@ -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
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment