diff options
author | James Almer <jamrial@gmail.com> | 2023-06-15 10:02:43 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-06-16 09:57:35 -0300 |
commit | d00f0eebbdebdf03698e8e134c3765f3ccb2f8c7 (patch) | |
tree | e75d701be27fd2295c76d217b7c27e640775a708 /libavcodec/evc_parser.c | |
parent | a734fa92c8bc39f0792c8da8aecaa145599808bd (diff) | |
download | ffmpeg-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.c | 12 |
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, }; |