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
parent 485cfbe8
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment