aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/evc_parser.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-06-15 10:02:43 -0300
committerJames Almer <jamrial@gmail.com>2023-06-16 09:57:35 -0300
commitd00f0eebbdebdf03698e8e134c3765f3ccb2f8c7 (patch)
treee75d701be27fd2295c76d217b7c27e640775a708 /libavcodec/evc_parser.c
parenta734fa92c8bc39f0792c8da8aecaa145599808bd (diff)
downloadffmpeg-d00f0eebbdebdf03698e8e134c3765f3ccb2f8c7.tar.gz
avcodec/evc_parser: remove superfluous memset calls
The entire EVCParserContext will be zeroed during allocation. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/evc_parser.c')
-rw-r--r--libavcodec/evc_parser.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/libavcodec/evc_parser.c b/libavcodec/evc_parser.c
index 7528fb13db..639dcbd135 100644
--- a/libavcodec/evc_parser.c
+++ b/libavcodec/evc_parser.c
@@ -197,17 +197,6 @@ static int evc_parse(AVCodecParserContext *s, AVCodecContext *avctx,
return next;
}
-static int evc_parser_init(AVCodecParserContext *s)
-{
- EVCParserContext *ctx = s->priv_data;
-
- memset(ctx->sps, 0, sizeof(EVCParserSPS *)*EVC_MAX_SPS_COUNT);
- memset(ctx->pps, 0, sizeof(EVCParserPPS *)*EVC_MAX_PPS_COUNT);
- memset(ctx->slice_header, 0, sizeof(EVCParserSliceHeader *)*EVC_MAX_PPS_COUNT);
-
- return 0;
-}
-
static void evc_parser_close(AVCodecParserContext *s)
{
EVCParserContext *ctx = s->priv_data;
@@ -229,7 +218,6 @@ static void evc_parser_close(AVCodecParserContext *s)
const AVCodecParser ff_evc_parser = {
.codec_ids = { AV_CODEC_ID_EVC },
.priv_data_size = sizeof(EVCParserContext),
- .parser_init = evc_parser_init,
.parser_parse = evc_parse,
.parser_close = evc_parser_close,
};