avcodec/dynamic_hdr_vivid: fix base_param_Delta

It conflicts the comments. The operation based on Delta_enable_mode
can be applied by user during tone mapping.

Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
pull/389/head
Zhao Zhili 2 years ago
parent ac5dffdfe6
commit 9a1b142712
  1. 3
      libavcodec/dynamic_hdr_vivid.c

@ -90,9 +90,6 @@ int ff_parse_itu_t_t35_to_dynamic_hdr_vivid(AVDynamicHDRVivid *s, const uint8_t
tm_params->base_param_k2 = get_bits(gb, 2);
tm_params->base_param_k3 = get_bits(gb, 4);
tm_params->base_param_Delta_enable_mode = get_bits(gb, 3);
if (tm_params->base_param_Delta_enable_mode == 2 || tm_params->base_param_Delta_enable_mode == 6)
tm_params->base_param_Delta = (AVRational){get_bits(gb, 7) * -1, base_param_Delta_den};
else
tm_params->base_param_Delta = (AVRational){get_bits(gb, 7), base_param_Delta_den};
if (get_bits_left(gb) < 1)

Loading…
Cancel
Save