[FFmpeg-cvslog] avformat/evc: remove unused variable

James Almer git at videolan.org
Mon Jun 19 23:34:43 EEST 2023


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Mon Jun 19 17:34:15 2023 -0300| [17499f43b15f9130ba44aa257410db9c6db2864b] | committer: James Almer

avformat/evc: remove unused variable

And check the correct one. Should fix use of uninitialized value warnings.

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=17499f43b15f9130ba44aa257410db9c6db2864b
---

 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



More information about the ffmpeg-cvslog mailing list