History

avcodec/av1_parser: constify some variables

James Almer committed 5 years ago

Commit 970264a1 parent f2891fb1 file · +6 −6Browse files

Showing the changes to libavcodec/av1_parser.c (1 of 1 file). Show all

Unified · Split

libavcodec/av1_parser.c+6−6
@@ -56,9 +56,9 @@ static int av1_parser_parse(AVCodecParserContext *ctx, · 55 unmodified lines
5656 {
5757 AV1ParseContext *s = ctx->priv_data;
5858 CodedBitstreamFragment *td = &s->temporal_unit;
59− CodedBitstreamAV1Context *av1 = s->cbc->priv_data;
60− AV1RawSequenceHeader *seq;
61− AV1RawColorConfig *color;
59+ const CodedBitstreamAV1Context *av1 = s->cbc->priv_data;
60+ const AV1RawSequenceHeader *seq;
61+ const AV1RawColorConfig *color;
6262 int ret;
6363
6464 *out_data = data;
@@ -96,9 +96,9 @@ static int av1_parser_parse(AVCodecParserContext *ctx, · 31 unmodified lines
9696 color = &seq->color_config;
9797
9898 for (int i = 0; i < td->nb_units; i++) {
99− CodedBitstreamUnit *unit = &td->units[i];
100− AV1RawOBU *obu = unit->content;
101− AV1RawFrameHeader *frame;
99+ const CodedBitstreamUnit *unit = &td->units[i];
100+ const AV1RawOBU *obu = unit->content;
101+ const AV1RawFrameHeader *frame;
102102
103103 if (unit->type == AV1_OBU_FRAME)
104104 frame = &obu->obu.frame.header;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t