OSDN Git Service

Add expected const qualifier on 'buf' to match AVCodec.decode's declaration.
authorReynaldo H. Verdejo Pinochet <reynaldo@opendot.cl>
Thu, 4 Dec 2008 15:08:44 +0000 (15:08 +0000)
committerReynaldo H. Verdejo Pinochet <reynaldo@opendot.cl>
Thu, 4 Dec 2008 15:08:44 +0000 (15:08 +0000)
This change gets rid of another compiler warning.

Originally committed as revision 16005 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/qcelpdec.c

index 8919365..87baee4 100644 (file)
@@ -627,7 +627,7 @@ static int buf_size2bitrate(const int buf_size)
  * 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 void warn_insufficient_frame_quality(AVCodecContext *avctx,
 }
 
 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;