From: Reynaldo H. Verdejo Pinochet Date: Thu, 4 Dec 2008 15:08:44 +0000 (+0000) Subject: Add expected const qualifier on 'buf' to match AVCodec.decode's declaration. X-Git-Tag: v0.5~1787 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=87a9173679118beef867c7e9626868b4a3dfc837;p=platform%2Fupstream%2Flibav.git Add expected const qualifier on 'buf' to match AVCodec.decode's declaration. This change gets rid of another compiler warning. Originally committed as revision 16005 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/qcelpdec.c b/libavcodec/qcelpdec.c index 891936572..87baee4ca 100644 --- a/libavcodec/qcelpdec.c +++ b/libavcodec/qcelpdec.c @@ -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;