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/pcm.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/pcm.c')
-rw-r--r-- | libavcodec/pcm.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index ba0f53a0d7..e51b5f9dfa 100644 --- a/libavcodec/pcm.c +++ b/libavcodec/pcm.c @@ -81,14 +81,14 @@ static int pcm_encode_frame(AVCodecContext *avctx, unsigned char *frame, int buf_size, void *data) { int n, sample_size, v; - short *samples; + const short *samples; unsigned char *dst; - uint8_t *srcu8; - int16_t *samples_int16_t; - int32_t *samples_int32_t; - int64_t *samples_int64_t; - uint16_t *samples_uint16_t; - uint32_t *samples_uint32_t; + const uint8_t *srcu8; + const int16_t *samples_int16_t; + const int32_t *samples_int32_t; + const int64_t *samples_int64_t; + const uint16_t *samples_uint16_t; + const uint32_t *samples_uint32_t; sample_size = av_get_bits_per_sample(avctx->codec->id)/8; n = buf_size / sample_size; |