From fdd8daf899c1bdaefea01e3f868e25a3cab63419 Mon Sep 17 00:00:00 2001 From: James Almer Date: Sat, 17 Jun 2023 18:50:33 -0300 Subject: [PATCH] avcodec/evc_parser: remove write only variable Signed-off-by: James Almer --- libavcodec/evc_parser.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/evc_parser.c b/libavcodec/evc_parser.c index d22922d1c9..c30da6846e 100644 --- a/libavcodec/evc_parser.c +++ b/libavcodec/evc_parser.c @@ -211,7 +211,6 @@ static int parse_nal_units(AVCodecParserContext *s, AVCodecContext *avctx, const { const uint8_t *data = buf; int data_size = buf_size; - int bytes_read = 0; while (data_size > 0) { int nalu_size = 0; @@ -223,7 +222,6 @@ static int parse_nal_units(AVCodecParserContext *s, AVCodecContext *avctx, const nalu_size = evc_read_nal_unit_length(data, data_size, avctx); - bytes_read += EVC_NALU_LENGTH_PREFIX_SIZE; data += EVC_NALU_LENGTH_PREFIX_SIZE; data_size -= EVC_NALU_LENGTH_PREFIX_SIZE;