mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 08:12:44 +00:00
avformat/av1: zero initialize the seq_params struct
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
022fa7a24e
commit
11cec34829
@ -111,8 +111,6 @@ static int parse_color_config(AV1SequenceParameters *seq_params, GetBitContext *
|
||||
seq_params->high_bitdepth = get_bits1(gb);
|
||||
if (seq_params->seq_profile == FF_PROFILE_AV1_PROFESSIONAL && seq_params->high_bitdepth)
|
||||
seq_params->twelve_bit = get_bits1(gb);
|
||||
else
|
||||
seq_params->twelve_bit = 0;
|
||||
|
||||
if (seq_params->seq_profile == FF_PROFILE_AV1_HIGH)
|
||||
seq_params->monochrome = 0;
|
||||
@ -185,6 +183,8 @@ static int parse_sequence_header(AV1SequenceParameters *seq_params, const uint8_
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
memset(seq_params, 0, sizeof(*seq_params));
|
||||
|
||||
seq_params->seq_profile = get_bits(&gb, 3);
|
||||
|
||||
skip_bits1(&gb); // still_picture
|
||||
|
Loading…
Reference in New Issue
Block a user