mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-21 06:20:09 +01:00
avcodec/evc_parse: use a local EVCParserSliceHeader when parsing slices
There's no need to store EVC_MAX_PPS_COUNT amount of slice headers in EVCParserContext. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -209,10 +209,8 @@ static void evc_parser_close(AVCodecParserContext *s)
|
||||
|
||||
for(int i = 0; i < EVC_MAX_PPS_COUNT; i++) {
|
||||
EVCParserPPS *pps = ctx->pps[i];
|
||||
EVCParserSliceHeader *sh = ctx->slice_header[i];
|
||||
|
||||
av_freep(&pps);
|
||||
av_freep(&sh);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user