avcodec/sanm: use named consant instead of literal number
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 9 Apr 2014 14:23:57 +0000 (16:23 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 9 Apr 2014 14:23:57 +0000 (16:23 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/sanm.c

index 02ef3a5..880ef8f 100644 (file)
@@ -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);
     }