Showing the changes to libavcodec/av1_parser.c (1 of 1 file). Show all
Unified · Split
| @@ -56,9 +56,9 @@ static int av1_parser_parse(AVCodecParserContext *ctx, · 55 unmodified lines | |||
| 56 | { | 56 | { |
| 57 | AV1ParseContext *s = ctx->priv_data; | 57 | AV1ParseContext *s = ctx->priv_data; |
| 58 | CodedBitstreamFragment *td = &s->temporal_unit; | 58 | CodedBitstreamFragment *td = &s->temporal_unit; |
| 59 | CodedBitstreamAV1Context *av1 = s->cbc->priv_data; | 59 | const CodedBitstreamAV1Context *av1 = s->cbc->priv_data; |
| 60 | AV1RawSequenceHeader *seq; | 60 | const AV1RawSequenceHeader *seq; |
| 61 | AV1RawColorConfig *color; | 61 | const AV1RawColorConfig *color; |
| 62 | int ret; | 62 | int ret; |
| 63 | 63 | ||
| 64 | *out_data = data; | 64 | *out_data = data; |
| @@ -96,9 +96,9 @@ static int av1_parser_parse(AVCodecParserContext *ctx, · 31 unmodified lines | |||
| 96 | color = &seq->color_config; | 96 | color = &seq->color_config; |
| 97 | 97 | ||
| 98 | for (int i = 0; i < td->nb_units; i++) { | 98 | for (int i = 0; i < td->nb_units; i++) { |
| 99 | CodedBitstreamUnit *unit = &td->units[i]; | 99 | const CodedBitstreamUnit *unit = &td->units[i]; |
| 100 | AV1RawOBU *obu = unit->content; | 100 | const AV1RawOBU *obu = unit->content; |
| 101 | AV1RawFrameHeader *frame; | 101 | const AV1RawFrameHeader *frame; |
| 102 | 102 | ||
| 103 | if (unit->type == AV1_OBU_FRAME) | 103 | if (unit->type == AV1_OBU_FRAME) |
| 104 | frame = &obu->obu.frame.header; | 104 | frame = &obu->obu.frame.header; |