OSDN Git Service

avcodec/utils: cast a function argument to shut up a compiler warning
authorDiego Biurrun <diego@biurrun.de>
Wed, 11 Apr 2012 13:00:37 +0000 (15:00 +0200)
committerDiego Biurrun <diego@biurrun.de>
Sun, 20 May 2012 13:09:07 +0000 (15:09 +0200)
libavcodec/utils.c:251: note: expected ‘const uint8_t *’ but argument is of type ‘const short int *’

libavcodec/utils.c

index 9ec4a9e..d2ee9f8 100644 (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.