diff options
author | James Almer <jamrial@gmail.com> | 2023-06-18 23:40:46 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-06-18 23:40:46 -0300 |
commit | 5e9986fd2d95a294ba6d2256ecff977ad8911112 (patch) | |
tree | 195875b16e7335125f069b01ddcbedce12dbd4b1 /libavformat/evc.c | |
parent | 9fc141f32d52099a6bfeba6e4e7ee2ce7fadc833 (diff) | |
download | ffmpeg-5e9986fd2d95a294ba6d2256ecff977ad8911112.tar.gz |
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 <jamrial@gmail.com>
Diffstat (limited to 'libavformat/evc.c')
-rw-r--r-- | libavformat/evc.c | 12 |
1 files 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; |