diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-07-24 17:59:49 +0400 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-07-24 17:59:49 +0400 |
commit | edac49daf5f703aa4e742ecdd747658e82d91b33 (patch) | |
tree | 25e3407964f6b8f65c1ed2a20e55c72bb7266870 /libavcodec/vorbis_enc.c | |
parent | 6f2c523c85c53cce2bda22a585b07a807255eadd (diff) |
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/vorbis_enc.c')
-rw-r--r-- | libavcodec/vorbis_enc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vorbis_enc.c b/libavcodec/vorbis_enc.c index f6385fdc96..a00bc7ae50 100644 --- a/libavcodec/vorbis_enc.c +++ b/libavcodec/vorbis_enc.c @@ -888,7 +888,7 @@ static void residue_encode(vorbis_enc_context *venc, vorbis_enc_residue *rc, } } -static int apply_window_and_mdct(vorbis_enc_context *venc, signed short *audio, +static int apply_window_and_mdct(vorbis_enc_context *venc, const signed short *audio, int samples) { int i, j, channel; @@ -973,7 +973,7 @@ static int vorbis_encode_frame(AVCodecContext *avccontext, int buf_size, void *data) { vorbis_enc_context *venc = avccontext->priv_data; - signed short *audio = data; + const signed short *audio = data; int samples = data ? avccontext->frame_size : 0; vorbis_enc_mode *mode; vorbis_enc_mapping *mapping; |