Mercurial > libavcodec.hg
diff wmaenc.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 | 8a4984c5cacc |
children |
line wrap: on
line diff
--- a/wmaenc.c Sat Jul 24 04:23:26 2010 +0000 +++ b/wmaenc.c Sat Jul 24 13:59:49 2010 +0000 @@ -74,7 +74,7 @@ } -static void apply_window_and_mdct(AVCodecContext * avctx, signed short * audio, int len) { +static void apply_window_and_mdct(AVCodecContext * avctx, const signed short * audio, int len) { WMACodecContext *s = avctx->priv_data; int window_index= s->frame_len_bits - s->block_len_bits; int i, j, channel; @@ -328,7 +328,7 @@ static int encode_superframe(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data){ WMACodecContext *s = avctx->priv_data; - short *samples = data; + const short *samples = data; int i, total_gain; s->block_len_bits= s->frame_len_bits; //required by non variable block len