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>
This commit is contained in:
parent
e132fae1a5
commit
22c47b10b2
@ -571,7 +571,7 @@ static void vvc_parser_close(AVCodecParserContext *s)
|
|||||||
av_freep(&ctx->pc.buffer);
|
av_freep(&ctx->pc.buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
AVCodecParser ff_vvc_parser = {
|
const AVCodecParser ff_vvc_parser = {
|
||||||
.codec_ids = { AV_CODEC_ID_VVC },
|
.codec_ids = { AV_CODEC_ID_VVC },
|
||||||
.priv_data_size = sizeof(VVCParserContext),
|
.priv_data_size = sizeof(VVCParserContext),
|
||||||
.parser_init = vvc_parser_init,
|
.parser_init = vvc_parser_init,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user