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
63dd1377
Commit
63dd1377
authored
Sep 28, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uninitalized variables
Originally committed as revision 3534 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
58978c07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
avformat.h
libavformat/avformat.h
+3
-0
utils.c
libavformat/utils.c
+2
-1
No files found.
libavformat/avformat.h
View file @
63dd1377
...
...
@@ -42,6 +42,8 @@ typedef struct AVPacket {
}
AVPacket
;
#define PKT_FLAG_KEY 0x0001
void
av_destruct_packet_nofree
(
AVPacket
*
pkt
);
/* initialize optional fields of a packet */
static
inline
void
av_init_packet
(
AVPacket
*
pkt
)
{
...
...
@@ -50,6 +52,7 @@ static inline void av_init_packet(AVPacket *pkt)
pkt
->
duration
=
0
;
pkt
->
flags
=
0
;
pkt
->
stream_index
=
0
;
pkt
->
destruct
=
av_destruct_packet_nofree
;
}
int
av_new_packet
(
AVPacket
*
pkt
,
int
size
);
...
...
libavformat/utils.c
View file @
63dd1377
...
...
@@ -413,6 +413,7 @@ int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
must_open_file
=
1
;
if
(
fmt
&&
(
fmt
->
flags
&
AVFMT_NOFILE
))
{
must_open_file
=
0
;
pb
=
NULL
;
//FIXME this or memset(pb, 0, sizeof(ByteIOContext)); otherwise its uninitalized
}
if
(
!
fmt
||
must_open_file
)
{
...
...
@@ -679,7 +680,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
pkt
->
duration
=
av_rescale
(
pkt
->
duration
,
AV_TIME_BASE
*
(
int64_t
)
st
->
time_base
.
num
,
st
->
time_base
.
den
);
}
static
void
av_destruct_packet_nofree
(
AVPacket
*
pkt
)
void
av_destruct_packet_nofree
(
AVPacket
*
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