1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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 *’
This commit is contained in:
Diego Biurrun 2012-04-11 15:00:37 +02:00
parent 4466d0e84b
commit 0c517644b2

View File

@ -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.