From 0c517644b267d6bb41f898104725346d92202cc7 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Wed, 11 Apr 2012 15:00:37 +0200 Subject: [PATCH] avcodec/utils: cast a function argument to shut up a compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit libavcodec/utils.c:251: note: expected ‘const uint8_t *’ but argument is of type ‘const short int *’ --- libavcodec/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 9ec4a9e848..d2ee9f893b 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1047,7 +1047,8 @@ int attribute_align_arg avcodec_encode_audio(AVCodecContext *avctx, avctx->sample_fmt, 1); if ((ret = avcodec_fill_audio_frame(frame, avctx->channels, avctx->sample_fmt, - samples, samples_size, 1))) + (const uint8_t *) samples, + samples_size, 1))) return ret; /* fabricate frame pts from sample count.