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>
pull/389/head
James Almer 1 year ago
parent 9fc141f32d
commit 5e9986fd2d
  1. 12
      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;

Loading…
Cancel
Save