mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-19 13:30:03 +01:00
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>
This commit is contained in:
@@ -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_k2 = get_bits(gb, 2);
|
||||||
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);
|
||||||
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};
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user