Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
cc07a792
Commit
cc07a792
authored
Sep 20, 2012
by
Andrey Utkin
Committed by
Michael Niedermayer
Sep 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add av_copy_packet()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
d33908a5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
avcodec.h
libavcodec/avcodec.h
+7
-0
avpacket.c
libavcodec/avpacket.c
+6
-0
version.h
libavcodec/version.h
+1
-1
No files found.
libavcodec/avcodec.h
View file @
cc07a792
...
...
@@ -3668,6 +3668,13 @@ int av_grow_packet(AVPacket *pkt, int grow_by);
*/
int
av_dup_packet
(
AVPacket
*
pkt
);
/**
* Copy packet, including contents
*
* @return 0 on success, negative AVERROR on fail
*/
int
av_copy_packet
(
AVPacket
*
dst
,
AVPacket
*
src
);
/**
* Free a packet.
*
...
...
libavcodec/avpacket.c
View file @
cc07a792
...
...
@@ -165,6 +165,12 @@ int av_dup_packet(AVPacket *pkt)
return
0
;
}
int
av_copy_packet
(
AVPacket
*
dst
,
AVPacket
*
src
)
{
*
dst
=
*
src
;
return
copy_packet_data
(
dst
,
src
);
}
void
av_free_packet
(
AVPacket
*
pkt
)
{
if
(
pkt
)
{
...
...
libavcodec/version.h
View file @
cc07a792
...
...
@@ -27,7 +27,7 @@
*/
#define LIBAVCODEC_VERSION_MAJOR 54
#define LIBAVCODEC_VERSION_MINOR 5
6
#define LIBAVCODEC_VERSION_MINOR 5
7
#define LIBAVCODEC_VERSION_MICRO 100
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
...
...
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