avcodec/vvc_parser: Constify parser

The discrepancy between the definition and the declaration
in parsers.c is actually UB.

Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
pull/389/head
Andreas Rheinhardt 2 years ago
parent e132fae1a5
commit 22c47b10b2
  1. 2
      libavcodec/vvc_parser.c

@ -571,7 +571,7 @@ static void vvc_parser_close(AVCodecParserContext *s)
av_freep(&ctx->pc.buffer);
}
AVCodecParser ff_vvc_parser = {
const AVCodecParser ff_vvc_parser = {
.codec_ids = { AV_CODEC_ID_VVC },
.priv_data_size = sizeof(VVCParserContext),
.parser_init = vvc_parser_init,

Loading…
Cancel
Save