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
659596f0
Commit
659596f0
authored
Jun 04, 2007
by
Ramiro Polla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export av_init_packet
Originally committed as revision 9211 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
04ec18b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
avformat.h
libavformat/avformat.h
+1
-10
utils.c
libavformat/utils.c
+11
-0
No files found.
libavformat/avformat.h
View file @
659596f0
...
...
@@ -57,16 +57,7 @@ void av_destruct_packet_nofree(AVPacket *pkt);
void
av_destruct_packet
(
AVPacket
*
pkt
);
/* initialize optional fields of a packet */
static
inline
void
av_init_packet
(
AVPacket
*
pkt
)
{
pkt
->
pts
=
AV_NOPTS_VALUE
;
pkt
->
dts
=
AV_NOPTS_VALUE
;
pkt
->
pos
=
-
1
;
pkt
->
duration
=
0
;
pkt
->
flags
=
0
;
pkt
->
stream_index
=
0
;
pkt
->
destruct
=
av_destruct_packet_nofree
;
}
void
av_init_packet
(
AVPacket
*
pkt
);
/**
* Allocate the payload of a packet and intialized its fields to default values.
...
...
libavformat/utils.c
View file @
659596f0
...
...
@@ -176,6 +176,17 @@ void av_destruct_packet(AVPacket *pkt)
pkt
->
data
=
NULL
;
pkt
->
size
=
0
;
}
void
av_init_packet
(
AVPacket
*
pkt
)
{
pkt
->
pts
=
AV_NOPTS_VALUE
;
pkt
->
dts
=
AV_NOPTS_VALUE
;
pkt
->
pos
=
-
1
;
pkt
->
duration
=
0
;
pkt
->
flags
=
0
;
pkt
->
stream_index
=
0
;
pkt
->
destruct
=
av_destruct_packet_nofree
;
}
int
av_new_packet
(
AVPacket
*
pkt
,
int
size
)
{
uint8_t
*
data
;
...
...
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