History

avformat/evc: use get_ue_golomb_long()

Fixes compilation of shared libraries, as well as correctly parses width and height values.

James Almer committed 3 years ago

Commit 5e9986f1 parent 9fc141f1 file · +6 −6Browse files

Showing the changes to libavformat (1 of 1 file). Show all

Unified · Split

libavformat/evc.c+6−6
@@ -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:0141 // 1 - 4:2:0
142 // 2 - 4:2:2142 // 2 - 4:2:2
143 // 3 - 4:4:4143 // 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;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t