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;
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