diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-09 16:23:57 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-09 16:23:57 +0200 |
commit | dddacf780f1e0f8fa535b13654615607eabba85f (patch) | |
tree | f122121945fbf4bccfe3f9dea10cdaac89d81274 /libavcodec/sanm.c | |
parent | acf112ba6e3df4132d2b0fc18d3ce8a40badff52 (diff) | |
download | ffmpeg-dddacf780f1e0f8fa535b13654615607eabba85f.tar.gz |
avcodec/sanm: use named consant instead of literal number
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/sanm.c')
-rw-r--r-- | libavcodec/sanm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c index 02ef3a5ebe..880ef8fa22 100644 --- a/libavcodec/sanm.c +++ b/libavcodec/sanm.c @@ -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); } |