[FFmpeg-devel] [PATCH 4/5] avcodec/hevc_ps: Use get_ue_golomb() instead of get_ue_golomb_long() for depth
Michael Niedermayer
michael at niedermayer.cc
Mon Apr 17 01:25:17 EEST 2023
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavcodec/hevc_ps.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c
index be1d668c263..2f505ba2f7a 100644
--- a/libavcodec/hevc_ps.c
+++ b/libavcodec/hevc_ps.c
@@ -1542,9 +1542,9 @@ static int pps_scc_extension(GetBitContext *gb, AVCodecContext *avctx,
if (pps->pps_palette_predictor_initializers_present_flag = get_bits1(gb)) {
if ((pps->pps_num_palette_predictor_initializers = get_ue_golomb_long(gb)) > 0) {
pps->monochrome_palette_flag = get_bits1(gb);
- pps->luma_bit_depth_entry_minus8 = get_ue_golomb_long(gb);
+ pps->luma_bit_depth_entry_minus8 = get_ue_golomb(gb);
if (!pps->monochrome_palette_flag)
- pps->chroma_bit_depth_entry_minus8 = get_ue_golomb_long(gb);
+ pps->chroma_bit_depth_entry_minus8 = get_ue_golomb(gb);
num_comps = pps->monochrome_palette_flag ? 1 : 3;
for (int comp = 0; comp < num_comps; comp++)
for (int i = 0; i < pps->pps_num_palette_predictor_initializers; i++)
--
2.17.1
More information about the ffmpeg-devel
mailing list