From 17499f43b15f9130ba44aa257410db9c6db2864b Mon Sep 17 00:00:00 2001 From: James Almer Date: Mon, 19 Jun 2023 17:34:15 -0300 Subject: [PATCH] avformat/evc: remove unused variable And check the correct one. Should fix use of uninitialized value warnings. Signed-off-by: James Almer --- libavformat/evc.c | 3 +-- 1 file changed, 1 insertion(+), 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