aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/evc.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-06-19 17:34:15 -0300
committerJames Almer <jamrial@gmail.com>2023-06-19 17:34:15 -0300
commit17499f43b15f9130ba44aa257410db9c6db2864b (patch)
tree989443526565df070ba5ee97c4d015cd4a4603d9 /libavformat/evc.c
parente81eafcb974f9d7999889dd6c96cf77b07fde08b (diff)
downloadffmpeg-17499f43b15f9130ba44aa257410db9c6db2864b.tar.gz
avformat/evc: remove unused variable
And check the correct one. Should fix use of uninitialized value warnings. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/evc.c')
-rw-r--r--libavformat/evc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/evc.c b/libavformat/evc.c
index 79463ba018..421ff84cb7 100644
--- a/libavformat/evc.c
+++ b/libavformat/evc.c
@@ -117,7 +117,6 @@ typedef struct NALUList {
static int evcc_parse_sps(const uint8_t *bs, int bs_size, EVCDecoderConfigurationRecord *evcc)
{
GetBitContext gb;
- int sps_seq_parameter_set_id;
EVCSPS sps;
bs += EVC_NALU_HEADER_SIZE;
@@ -128,7 +127,7 @@ static int evcc_parse_sps(const uint8_t *bs, int bs_size, EVCDecoderConfiguratio
sps.sps_seq_parameter_set_id = get_ue_golomb_long(&gb);
- if (sps_seq_parameter_set_id >= EVC_MAX_SPS_COUNT)
+ if (sps.sps_seq_parameter_set_id >= EVC_MAX_SPS_COUNT)
return 0;
// the Baseline profile is indicated by profile_idc eqal to 0