Mercurial > libavcodec.hg
comparison g726.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 | 351a81a23343 |
comparison
equal
deleted
inserted
replaced
12261:940736055764 | 12262:dde20597f15e |
---|---|
346 #if CONFIG_ADPCM_G726_ENCODER | 346 #if CONFIG_ADPCM_G726_ENCODER |
347 static int g726_encode_frame(AVCodecContext *avctx, | 347 static int g726_encode_frame(AVCodecContext *avctx, |
348 uint8_t *dst, int buf_size, void *data) | 348 uint8_t *dst, int buf_size, void *data) |
349 { | 349 { |
350 G726Context *c = avctx->priv_data; | 350 G726Context *c = avctx->priv_data; |
351 short *samples = data; | 351 const short *samples = data; |
352 PutBitContext pb; | 352 PutBitContext pb; |
353 | 353 |
354 init_put_bits(&pb, dst, 1024*1024); | 354 init_put_bits(&pb, dst, 1024*1024); |
355 | 355 |
356 for (; buf_size; buf_size--) | 356 for (; buf_size; buf_size--) |