[FFmpeg-cvslog] avcodec/sanm: use named consant instead of literal number

Michael Niedermayer git at videolan.org
Wed Apr 9 17:23:52 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Apr  9 16:23:57 2014 +0200| [dddacf780f1e0f8fa535b13654615607eabba85f] | committer: Michael Niedermayer

avcodec/sanm: use named consant instead of literal number

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dddacf780f1e0f8fa535b13654615607eabba85f
---

 libavcodec/sanm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c
index 02ef3a5..880ef8f 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);
     }
 



More information about the ffmpeg-cvslog mailing list