diff mbox series

[FFmpeg-devel,08/10] avcodec/evc_parser: remove write only variable

Message ID 20230617220015.12669-5-jamrial@gmail.com
State Accepted
Commit fdd8daf899c1bdaefea01e3f868e25a3cab63419
Headers show
Series [FFmpeg-devel,1/3] avcodec/evc_frame_merge: use av_fast_realloc() | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 fail Make fate failed
andriy/make_x86 success Make finished
andriy/make_fate_x86 fail Make fate failed

Commit Message

James Almer June 17, 2023, 10 p.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavcodec/evc_parser.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Paul B Mahol June 18, 2023, 12:04 p.m. UTC | #1
lgtm
diff mbox series

Patch

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;