From 5e9986fd2d95a294ba6d2256ecff977ad8911112 Mon Sep 17 00:00:00 2001 From: James Almer Date: Sun, 18 Jun 2023 23:40:46 -0300 Subject: [PATCH] avformat/evc: use get_ue_golomb_long() Fixes compilation of shared libraries, as well as correctly parses width and height values. Signed-off-by: James Almer --- libavformat/evc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libavformat/evc.c b/libavformat/evc.c index dc75ccb56d..ba949ebf6e 100644 --- a/libavformat/evc.c +++ b/libavformat/evc.c @@ -123,7 +123,7 @@ static int evcc_parse_sps(const uint8_t *bs, int bs_size, EVCDecoderConfiguratio if (init_get_bits8(&gb, bs, bs_size) < 0) return 0; - sps.sps_seq_parameter_set_id = get_ue_golomb(&gb); + sps.sps_seq_parameter_set_id = get_ue_golomb_long(&gb); if (sps_seq_parameter_set_id >= EVC_MAX_SPS_COUNT) return 0; @@ -141,13 +141,13 @@ static int evcc_parse_sps(const uint8_t *bs, int bs_size, EVCDecoderConfiguratio // 1 - 4:2:0 // 2 - 4:2:2 // 3 - 4:4:4 - sps.chroma_format_idc = get_ue_golomb(&gb); + sps.chroma_format_idc = get_ue_golomb_long(&gb); - sps.pic_width_in_luma_samples = get_ue_golomb(&gb); - sps.pic_height_in_luma_samples = get_ue_golomb(&gb); + sps.pic_width_in_luma_samples = get_ue_golomb_long(&gb); + sps.pic_height_in_luma_samples = get_ue_golomb_long(&gb); - sps.bit_depth_luma_minus8 = get_ue_golomb(&gb); - sps.bit_depth_chroma_minus8 = get_ue_golomb(&gb); + sps.bit_depth_luma_minus8 = get_ue_golomb_long(&gb); + sps.bit_depth_chroma_minus8 = get_ue_golomb_long(&gb); evcc->profile_idc = sps.profile_idc; evcc->level_idc = sps.level_idc;