aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhao Zhili <zhilizhao@tencent.com>2023-03-17 18:51:16 +0800
committerZhao Zhili <zhilizhao@tencent.com>2023-03-17 18:52:36 +0800
commit229363732eb64097f74ad14ac217e4c52036a6c4 (patch)
treeadd48e405b6a2d3038fcc0620d7817a7ae23141d
parent9a1b142712966736f5dae60c81f192e99bedd04c (diff)
downloadffmpeg-229363732eb64097f74ad14ac217e4c52036a6c4.tar.gz
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>
-rw-r--r--libavcodec/dynamic_hdr_vivid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/dynamic_hdr_vivid.c b/libavcodec/dynamic_hdr_vivid.c
index 30f7dfc71f..7cb13cbf32 100644
--- a/libavcodec/dynamic_hdr_vivid.c
+++ b/libavcodec/dynamic_hdr_vivid.c
@@ -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_Delta_enable_mode = get_bits(gb, 3);
tm_params->base_param_Delta = (AVRational){get_bits(gb, 7), base_param_Delta_den};
-
+ }
if (get_bits_left(gb) < 1)
return AVERROR_INVALIDDATA;
tm_params->three_Spline_enable_flag = get_bits(gb, 1);
@@ -128,7 +128,6 @@ FF_DISABLE_DEPRECATION_WARNINGS
FF_ENABLE_DEPRECATION_WARNINGS
#endif
}
- }
}
}