[FFmpeg-cvslog] avformat/evc: use get_ue_golomb_long()
James Almer
git at videolan.org
Mon Jun 19 05:43:22 EEST 2023
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Jun 18 23:40:46 2023 -0300| [5e9986fd2d95a294ba6d2256ecff977ad8911112] | committer: James Almer
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 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5e9986fd2d95a294ba6d2256ecff977ad8911112
---
libavformat/evc.c | 12 ++++++------
1 file 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;
More information about the ffmpeg-cvslog
mailing list