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
5e363bb9
Commit
5e363bb9
authored
Aug 30, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flvenc: kill a uninitialized variable warning.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b3facc4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
flvenc.c
libavformat/flvenc.c
+2
-1
No files found.
libavformat/flvenc.c
View file @
5e363bb9
...
@@ -440,7 +440,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
...
@@ -440,7 +440,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
unsigned
ts
;
unsigned
ts
;
int
size
=
pkt
->
size
;
int
size
=
pkt
->
size
;
uint8_t
*
data
=
NULL
;
uint8_t
*
data
=
NULL
;
int
flags
,
flags_size
;
int
flags
=
-
1
,
flags_size
;
// av_log(s, AV_LOG_DEBUG, "type:%d pts: %"PRId64" size:%d\n",
// av_log(s, AV_LOG_DEBUG, "type:%d pts: %"PRId64" size:%d\n",
// enc->codec_type, timestamp, size);
// enc->codec_type, timestamp, size);
...
@@ -539,6 +539,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
...
@@ -539,6 +539,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
avio_seek
(
pb
,
data_size
+
10
-
3
,
SEEK_CUR
);
avio_seek
(
pb
,
data_size
+
10
-
3
,
SEEK_CUR
);
avio_wb32
(
pb
,
data_size
+
11
);
avio_wb32
(
pb
,
data_size
+
11
);
}
else
{
}
else
{
av_assert1
(
flags
>=
0
);
avio_w8
(
pb
,
flags
);
avio_w8
(
pb
,
flags
);
if
(
enc
->
codec_id
==
AV_CODEC_ID_VP6
)
if
(
enc
->
codec_id
==
AV_CODEC_ID_VP6
)
avio_w8
(
pb
,
0
);
avio_w8
(
pb
,
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