Fixes compilation of shared libraries, as well as correctly parses width and height values.
Showing the changes to libavformat (1 of 1 file). Show all
Unified · Split
| @@ -123,7 +123,7 @@ static int evcc_parse_sps(const uint8_t *bs, int bs_size, EVCDecoderConfiguratio · 122 unmodified lines | |||
| 123 | if (init_get_bits8(&gb, bs, bs_size) < 0) | 123 | if (init_get_bits8(&gb, bs, bs_size) < 0) |
| 124 | return 0; | 124 | return 0; |
| 125 | 125 | ||
| 126 | sps.sps_seq_parameter_set_id = get_ue_golomb(&gb); | 126 | sps.sps_seq_parameter_set_id = get_ue_golomb_long(&gb); |
| 127 | 127 | ||
| 128 | if (sps_seq_parameter_set_id >= EVC_MAX_SPS_COUNT) | 128 | if (sps_seq_parameter_set_id >= EVC_MAX_SPS_COUNT) |
| 129 | return 0; | 129 | return 0; |
| @@ -141,13 +141,13 @@ static int evcc_parse_sps(const uint8_t *bs, int bs_size, EVCDecoderConfiguratio · 11 unmodified lines | |||
| 141 | // 1 - 4:2:0 | 141 | // 1 - 4:2:0 |
| 142 | // 2 - 4:2:2 | 142 | // 2 - 4:2:2 |
| 143 | // 3 - 4:4:4 | 143 | // 3 - 4:4:4 |
| 144 | sps.chroma_format_idc = get_ue_golomb(&gb); | 144 | sps.chroma_format_idc = get_ue_golomb_long(&gb); |
| 145 | 145 | ||
| 146 | sps.pic_width_in_luma_samples = get_ue_golomb(&gb); | 146 | sps.pic_width_in_luma_samples = get_ue_golomb_long(&gb); |
| 147 | sps.pic_height_in_luma_samples = get_ue_golomb(&gb); | 147 | sps.pic_height_in_luma_samples = get_ue_golomb_long(&gb); |
| 148 | 148 | ||
| 149 | sps.bit_depth_luma_minus8 = get_ue_golomb(&gb); | 149 | sps.bit_depth_luma_minus8 = get_ue_golomb_long(&gb); |
| 150 | sps.bit_depth_chroma_minus8 = get_ue_golomb(&gb); | 150 | sps.bit_depth_chroma_minus8 = get_ue_golomb_long(&gb); |
| 151 | 151 | ||
| 152 | evcc->profile_idc = sps.profile_idc; | 152 | evcc->profile_idc = sps.profile_idc; |
| 153 | evcc->level_idc = sps.level_idc; | 153 | evcc->level_idc = sps.level_idc; |