changeset 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
files qcelpdec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;