Commit dddacf78 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/sanm: use named consant instead of literal number

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent acf112ba
......@@ -511,7 +511,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
}
ctx->subversion = AV_RL16(avctx->extradata);
for (i = 0; i < 256; i++)
for (i = 0; i < PALETTE_SIZE; i++)
ctx->pal[i] = 0xFFU << 24 | AV_RL32(avctx->extradata + 2 + i * 4);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment