diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-07-24 13:59:49 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-07-24 13:59:49 +0000 |
commit | edac49daf5f703aa4e742ecdd747658e82d91b33 (patch) | |
tree | 25e3407964f6b8f65c1ed2a20e55c72bb7266870 /libavcodec/ac3enc.c | |
parent | 6f2c523c85c53cce2bda22a585b07a807255eadd (diff) | |
download | ffmpeg-edac49daf5f703aa4e742ecdd747658e82d91b33.tar.gz |
Use "const" qualifier for pointers that point to input data of
audio encoders.
This is purely for clarity/documentation purposes.
Originally committed as revision 24481 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3enc.c')
-rw-r--r-- | libavcodec/ac3enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c index edae9a92bf..ea8ba8b496 100644 --- a/libavcodec/ac3enc.c +++ b/libavcodec/ac3enc.c @@ -1181,7 +1181,7 @@ static int AC3_encode_frame(AVCodecContext *avctx, 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 @@ static int AC3_encode_frame(AVCodecContext *avctx, 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 */ |