diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-04-11 15:00:37 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-05-20 15:09:07 +0200 |
commit | 0c517644b267d6bb41f898104725346d92202cc7 (patch) | |
tree | d6479292d96c75665f55201ed1aa20b407767d77 | |
parent | 4466d0e84b3a105a02170ce8bc9e22820ff0152f (diff) | |
download | ffmpeg-0c517644b267d6bb41f898104725346d92202cc7.tar.gz |
avcodec/utils: cast a function argument to shut up a compiler warning
libavcodec/utils.c:251: note: expected ‘const uint8_t *’ but argument is of type ‘const short int *’
-rw-r--r-- | libavcodec/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
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. |