diff ac3enc.c @ 12262:dde20597f15e libavcodec

Use "const" qualifier for pointers that point to input data of audio encoders. This is purely for clarity/documentation purposes.
author reimar
date Sat, 24 Jul 2010 13:59:49 +0000
parents 8b28e74de2c0
children
line wrap: on
line diff
--- a/ac3enc.c	Sat Jul 24 04:23:26 2010 +0000
+++ b/ac3enc.c	Sat Jul 24 13:59:49 2010 +0000
@@ -1181,7 +1181,7 @@
                             unsigned char *frame, int buf_size, void *data)
 {
     AC3EncodeContext *s = avctx->priv_data;
-    int16_t *samples = data;
+    const int16_t *samples = data;
     int i, j, k, v, ch;
     int16_t input_samples[N];
     int32_t mdct_coef[NB_BLOCKS][AC3_MAX_CHANNELS][N/2];
@@ -1197,7 +1197,7 @@
         int ich = s->channel_map[ch];
         /* fixed mdct to the six sub blocks & exponent computation */
         for(i=0;i<NB_BLOCKS;i++) {
-            int16_t *sptr;
+            const int16_t *sptr;
             int sinc;
 
             /* compute input samples */