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

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
123123 if (init_get_bits8(&gb, bs, bs_size) < 0)
124124 return 0;
125125
126− sps.sps_seq_parameter_set_id = get_ue_golomb(&gb);
126+ sps.sps_seq_parameter_set_id = get_ue_golomb_long(&gb);
127127
128128 if (sps_seq_parameter_set_id >= EVC_MAX_SPS_COUNT)
129129 return 0;
@@ -141,13 +141,13 @@ static int evcc_parse_sps(const uint8_t *bs, int bs_size, EVCDecoderConfiguratio · 11 unmodified lines
141141 // 1 - 4:2:0
142142 // 2 - 4:2:2
143143 // 3 - 4:4:4
144− sps.chroma_format_idc = get_ue_golomb(&gb);
144+ sps.chroma_format_idc = get_ue_golomb_long(&gb);
145145
146− sps.pic_width_in_luma_samples = get_ue_golomb(&gb);
147− sps.pic_height_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_long(&gb);
148148
149− sps.bit_depth_luma_minus8 = get_ue_golomb(&gb);
150− sps.bit_depth_chroma_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_long(&gb);
151151
152152 evcc->profile_idc = sps.profile_idc;
153153 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