avcodec/dynamic_hdr_vivid: fix base_enable_flag control
The base_enable_flag is parallel to three_Spline_enable_flag. The typesetting of the specification is very misleading. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
@@ -91,7 +91,7 @@ int ff_parse_itu_t_t35_to_dynamic_hdr_vivid(AVDynamicHDRVivid *s, const uint8_t
|
|||||||
tm_params->base_param_k3 = get_bits(gb, 4);
|
tm_params->base_param_k3 = get_bits(gb, 4);
|
||||||
tm_params->base_param_Delta_enable_mode = get_bits(gb, 3);
|
tm_params->base_param_Delta_enable_mode = get_bits(gb, 3);
|
||||||
tm_params->base_param_Delta = (AVRational){get_bits(gb, 7), base_param_Delta_den};
|
tm_params->base_param_Delta = (AVRational){get_bits(gb, 7), base_param_Delta_den};
|
||||||
|
}
|
||||||
if (get_bits_left(gb) < 1)
|
if (get_bits_left(gb) < 1)
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
tm_params->three_Spline_enable_flag = get_bits(gb, 1);
|
tm_params->three_Spline_enable_flag = get_bits(gb, 1);
|
||||||
@@ -130,7 +130,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
params->color_saturation_mapping_flag = get_bits(gb, 1);
|
params->color_saturation_mapping_flag = get_bits(gb, 1);
|
||||||
if (params->color_saturation_mapping_flag) {
|
if (params->color_saturation_mapping_flag) {
|
||||||
|
Reference in New Issue
Block a user