[FFmpeg-devel] [PATCH 08/10] avcodec/evc_parser: remove write only variable
James Almer
jamrial at gmail.com
Sun Jun 18 01:00:13 EEST 2023
Signed-off-by: James Almer <jamrial at gmail.com>
---
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;
--
2.41.0
More information about the ffmpeg-devel
mailing list