comparison qcelpdec.c @ 8259:437300244051 libavcodec

Add expected const qualifier on 'buf' to match AVCodec.decode's declaration. This change gets rid of another compiler warning.
author reynaldo
date Thu, 04 Dec 2008 15:08:44 +0000
parents b41482ad0ef5
children 8aa88616d6d8
comparison
equal deleted inserted replaced
8258:b41482ad0ef5 8259:437300244051
625 * I_F_Q if the bitrate cannot be satisfactorily determined 625 * I_F_Q if the bitrate cannot be satisfactorily determined
626 * 626 *
627 * TIA/EIA/IS-733 2.4.8.7.1 627 * TIA/EIA/IS-733 2.4.8.7.1
628 */ 628 */
629 static int determine_bitrate(AVCodecContext *avctx, const int buf_size, 629 static int determine_bitrate(AVCodecContext *avctx, const int buf_size,
630 uint8_t **buf) 630 const uint8_t **buf)
631 { 631 {
632 qcelp_packet_rate bitrate; 632 qcelp_packet_rate bitrate;
633 633
634 if((bitrate = buf_size2bitrate(buf_size)) >= 0) 634 if((bitrate = buf_size2bitrate(buf_size)) >= 0)
635 { 635 {
667 av_log(avctx, AV_LOG_WARNING, "Frame #%d, IFQ: %s\n", avctx->frame_number, 667 av_log(avctx, AV_LOG_WARNING, "Frame #%d, IFQ: %s\n", avctx->frame_number,
668 message); 668 message);
669 } 669 }
670 670
671 static int qcelp_decode_frame(AVCodecContext *avctx, void *data, int *data_size, 671 static int qcelp_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
672 uint8_t *buf, const int buf_size) 672 const uint8_t *buf, int buf_size)
673 { 673 {
674 QCELPContext *q = avctx->priv_data; 674 QCELPContext *q = avctx->priv_data;
675 float *outbuffer = data; 675 float *outbuffer = data;
676 int i; 676 int i;
677 float quantized_lspf[10], lpc[10]; 677 float quantized_lspf[10], lpc[10];