From a8178be3b3f6666aa3501dc146661c120cbe7dfe Mon Sep 17 00:00:00 2001 From: Frank Plowman Date: Wed, 5 Jul 2023 19:40:27 +0800 Subject: [PATCH] cbs_h266: expand the bit depth range to 16 bits Signed-off-by: James Almer --- libavcodec/cbs_h266_syntax_template.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/cbs_h266_syntax_template.c b/libavcodec/cbs_h266_syntax_template.c index ae44565a54..485c02f590 100644 --- a/libavcodec/cbs_h266_syntax_template.c +++ b/libavcodec/cbs_h266_syntax_template.c @@ -902,7 +902,7 @@ static int FUNC(vps) (CodedBitstreamContext *ctx, RWContext *rw, ues(vps_ols_dpb_pic_width[i], 0, UINT16_MAX, 1, i); ues(vps_ols_dpb_pic_height[i], 0, UINT16_MAX, 1, i); ubs(2, vps_ols_dpb_chroma_format[i], 1, i); - ues(vps_ols_dpb_bitdepth_minus8[i], 0, 2, 1, i); + ues(vps_ols_dpb_bitdepth_minus8[i], 0, 8, 1, i); if (vps_num_dpb_params > 1 && vps_num_dpb_params != num_multi_layer_olss) ues(vps_ols_dpb_params_idx[i], 0, vps_num_dpb_params - 1, 1, i); @@ -1158,7 +1158,7 @@ static int FUNC(sps)(CodedBitstreamContext *ctx, RWContext *rw, } - ue(sps_bitdepth_minus8, 0, 2); + ue(sps_bitdepth_minus8, 0, 8); qp_bd_offset = 6 * current->sps_bitdepth_minus8; flag(sps_entropy_coding_sync_enabled_flag);