mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
cbs_h266: expand the bit depth range to 16 bits
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
ca939ebb4f
commit
a8178be3b3
@ -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_width[i], 0, UINT16_MAX, 1, i);
|
||||||
ues(vps_ols_dpb_pic_height[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);
|
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
|
if (vps_num_dpb_params > 1
|
||||||
&& vps_num_dpb_params != num_multi_layer_olss)
|
&& vps_num_dpb_params != num_multi_layer_olss)
|
||||||
ues(vps_ols_dpb_params_idx[i], 0, vps_num_dpb_params - 1, 1, i);
|
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;
|
qp_bd_offset = 6 * current->sps_bitdepth_minus8;
|
||||||
|
|
||||||
flag(sps_entropy_coding_sync_enabled_flag);
|
flag(sps_entropy_coding_sync_enabled_flag);
|
||||||
|
Loading…
Reference in New Issue
Block a user