aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-06-29 20:12:23 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-06-29 20:22:27 +0200
commit22c47b10b28c0c47298d34a7108d378be5d7d08e (patch)
treea381463fc4fb034ae1ce98ff2ada7da745d4a908
parente132fae1a56eab1327d5bf83f1eca3f2491cbfb3 (diff)
downloadffmpeg-22c47b10b28c0c47298d34a7108d378be5d7d08e.tar.gz
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>
-rw-r--r--libavcodec/vvc_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vvc_parser.c b/libavcodec/vvc_parser.c
index 4f7657f7ab..f350fe70a9 100644
--- a/libavcodec/vvc_parser.c
+++ b/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,