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
11cec348
Commit
11cec348
authored
Sep 03, 2018
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/av1: zero initialize the seq_params struct
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
022fa7a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
av1.c
libavformat/av1.c
+2
-2
No files found.
libavformat/av1.c
View file @
11cec348
...
@@ -111,8 +111,6 @@ static int parse_color_config(AV1SequenceParameters *seq_params, GetBitContext *
...
@@ -111,8 +111,6 @@ static int parse_color_config(AV1SequenceParameters *seq_params, GetBitContext *
seq_params
->
high_bitdepth
=
get_bits1
(
gb
);
seq_params
->
high_bitdepth
=
get_bits1
(
gb
);
if
(
seq_params
->
seq_profile
==
FF_PROFILE_AV1_PROFESSIONAL
&&
seq_params
->
high_bitdepth
)
if
(
seq_params
->
seq_profile
==
FF_PROFILE_AV1_PROFESSIONAL
&&
seq_params
->
high_bitdepth
)
seq_params
->
twelve_bit
=
get_bits1
(
gb
);
seq_params
->
twelve_bit
=
get_bits1
(
gb
);
else
seq_params
->
twelve_bit
=
0
;
if
(
seq_params
->
seq_profile
==
FF_PROFILE_AV1_HIGH
)
if
(
seq_params
->
seq_profile
==
FF_PROFILE_AV1_HIGH
)
seq_params
->
monochrome
=
0
;
seq_params
->
monochrome
=
0
;
...
@@ -185,6 +183,8 @@ static int parse_sequence_header(AV1SequenceParameters *seq_params, const uint8_
...
@@ -185,6 +183,8 @@ static int parse_sequence_header(AV1SequenceParameters *seq_params, const uint8_
if
(
ret
<
0
)
if
(
ret
<
0
)
return
ret
;
return
ret
;
memset
(
seq_params
,
0
,
sizeof
(
*
seq_params
));
seq_params
->
seq_profile
=
get_bits
(
&
gb
,
3
);
seq_params
->
seq_profile
=
get_bits
(
&
gb
,
3
);
skip_bits1
(
&
gb
);
// still_picture
skip_bits1
(
&
gb
);
// still_picture
...
...
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