avcodec/evc_parser: remove write only variable

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2023-06-17 18:50:33 -03:00
parent a5663f2d9a
commit fdd8daf899
1 changed files with 0 additions and 2 deletions

View File

@ -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;