History

avcodec/evc_parser: remove superfluous memset calls

The entire EVCParserContext will be zeroed during allocation.

James Almer committed 3 years ago

Commit d00f0ee1 parent a734fa91 file · +0 −12Browse files

Unified · Split

libavcodec/evc_parser.c+0−12
@@ -197,17 +197,6 @@ static int evc_parse(AVCodecParserContext *s, AVCodecContext *avctx, · 196 unmodified lines
197197 return next;
198198 }
199199
200−static int evc_parser_init(AVCodecParserContext *s)
201−{
202− EVCParserContext *ctx = s->priv_data;
203−
204− memset(ctx->sps, 0, sizeof(EVCParserSPS *)*EVC_MAX_SPS_COUNT);
205− memset(ctx->pps, 0, sizeof(EVCParserPPS *)*EVC_MAX_PPS_COUNT);
206− memset(ctx->slice_header, 0, sizeof(EVCParserSliceHeader *)*EVC_MAX_PPS_COUNT);
207−
208− return 0;
209−}
210−
211200 static void evc_parser_close(AVCodecParserContext *s)
212201 {
213202 EVCParserContext *ctx = s->priv_data;
@@ -229,7 +218,6 @@ static void evc_parser_close(AVCodecParserContext *s) · 15 unmodified lines
229218 const AVCodecParser ff_evc_parser = {
230219 .codec_ids = { AV_CODEC_ID_EVC },
231220 .priv_data_size = sizeof(EVCParserContext),
232− .parser_init = evc_parser_init,
233221 .parser_parse = evc_parse,
234222 .parser_close = evc_parser_close,
235223 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t