mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
avcodec/av1_parser: constify some variables
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
f2891fbded
commit
970264a74f
@ -56,9 +56,9 @@ static int av1_parser_parse(AVCodecParserContext *ctx,
|
|||||||
{
|
{
|
||||||
AV1ParseContext *s = ctx->priv_data;
|
AV1ParseContext *s = ctx->priv_data;
|
||||||
CodedBitstreamFragment *td = &s->temporal_unit;
|
CodedBitstreamFragment *td = &s->temporal_unit;
|
||||||
CodedBitstreamAV1Context *av1 = s->cbc->priv_data;
|
const CodedBitstreamAV1Context *av1 = s->cbc->priv_data;
|
||||||
AV1RawSequenceHeader *seq;
|
const AV1RawSequenceHeader *seq;
|
||||||
AV1RawColorConfig *color;
|
const AV1RawColorConfig *color;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
*out_data = data;
|
*out_data = data;
|
||||||
@ -96,9 +96,9 @@ static int av1_parser_parse(AVCodecParserContext *ctx,
|
|||||||
color = &seq->color_config;
|
color = &seq->color_config;
|
||||||
|
|
||||||
for (int i = 0; i < td->nb_units; i++) {
|
for (int i = 0; i < td->nb_units; i++) {
|
||||||
CodedBitstreamUnit *unit = &td->units[i];
|
const CodedBitstreamUnit *unit = &td->units[i];
|
||||||
AV1RawOBU *obu = unit->content;
|
const AV1RawOBU *obu = unit->content;
|
||||||
AV1RawFrameHeader *frame;
|
const AV1RawFrameHeader *frame;
|
||||||
|
|
||||||
if (unit->type == AV1_OBU_FRAME)
|
if (unit->type == AV1_OBU_FRAME)
|
||||||
frame = &obu->obu.frame.header;
|
frame = &obu->obu.frame.header;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user