# HG changeset patch # User reynaldo # Date 1228403324 0 # Node ID 437300244051dafbbb3e55a0d3dfbca43645d1e6 # Parent b41482ad0ef516114f285ca596e0241c9dcc703e Add expected const qualifier on 'buf' to match AVCodec.decode's declaration. This change gets rid of another compiler warning. diff -r b41482ad0ef5 -r 437300244051 qcelpdec.c --- a/qcelpdec.c Thu Dec 04 14:54:55 2008 +0000 +++ b/qcelpdec.c Thu Dec 04 15:08:44 2008 +0000 @@ -627,7 +627,7 @@ * TIA/EIA/IS-733 2.4.8.7.1 */ static int determine_bitrate(AVCodecContext *avctx, const int buf_size, - uint8_t **buf) + const uint8_t **buf) { qcelp_packet_rate bitrate; @@ -669,7 +669,7 @@ } static int qcelp_decode_frame(AVCodecContext *avctx, void *data, int *data_size, - uint8_t *buf, const int buf_size) + const uint8_t *buf, int buf_size) { QCELPContext *q = avctx->priv_data; float *outbuffer = data;