diff ac3enc.c @ 7129:322023e630a6 libavcodec

mark read-only data as const
author stefang
date Tue, 24 Jun 2008 20:01:31 +0000
parents e943e1409077
children 85ab7655ad4d
line wrap: on
line diff
--- a/ac3enc.c	Tue Jun 24 18:38:55 2008 +0000
+++ b/ac3enc.c	Tue Jun 24 20:01:31 2008 +0000
@@ -490,7 +490,7 @@
     uint8_t bap1[NB_BLOCKS][AC3_MAX_CHANNELS][N/2];
     int16_t psd[NB_BLOCKS][AC3_MAX_CHANNELS][N/2];
     int16_t mask[NB_BLOCKS][AC3_MAX_CHANNELS][50];
-    static int frame_bits_inc[8] = { 0, 0, 2, 2, 2, 4, 2, 4 };
+    static const int frame_bits_inc[8] = { 0, 0, 2, 2, 2, 4, 2, 4 };
 
     /* init default parameters */
     s->slow_decay_code = 2;