aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/av1_parser.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-09-24 00:04:37 -0300
committerJames Almer <jamrial@gmail.com>2021-09-24 00:04:37 -0300
commit970264a74f00a6e2038b75c64ec43df4cfff0426 (patch)
tree1bb86b4d50a7bac80ed078340fa2d9b1f95b706a /libavcodec/av1_parser.c
parentf2891fbdeddd9049ba03b600d6c93a1ab732df66 (diff)
downloadffmpeg-970264a74f00a6e2038b75c64ec43df4cfff0426.tar.gz
avcodec/av1_parser: constify some variables
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/av1_parser.c')
-rw-r--r--libavcodec/av1_parser.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/av1_parser.c b/libavcodec/av1_parser.c
index b6c8004ee3..d2dfdb3580 100644
--- a/libavcodec/av1_parser.c
+++ b/libavcodec/av1_parser.c
@@ -56,9 +56,9 @@ static int av1_parser_parse(AVCodecParserContext *ctx,
{
AV1ParseContext *s = ctx->priv_data;
CodedBitstreamFragment *td = &s->temporal_unit;
- CodedBitstreamAV1Context *av1 = s->cbc->priv_data;
- AV1RawSequenceHeader *seq;
- AV1RawColorConfig *color;
+ const CodedBitstreamAV1Context *av1 = s->cbc->priv_data;
+ const AV1RawSequenceHeader *seq;
+ const AV1RawColorConfig *color;
int ret;
*out_data = data;
@@ -96,9 +96,9 @@ static int av1_parser_parse(AVCodecParserContext *ctx,
color = &seq->color_config;
for (int i = 0; i < td->nb_units; i++) {
- CodedBitstreamUnit *unit = &td->units[i];
- AV1RawOBU *obu = unit->content;
- AV1RawFrameHeader *frame;
+ const CodedBitstreamUnit *unit = &td->units[i];
+ const AV1RawOBU *obu = unit->content;
+ const AV1RawFrameHeader *frame;
if (unit->type == AV1_OBU_FRAME)
frame = &obu->obu.frame.header;