[FFmpeg-cvslog] avcodec/utils: cast a function argument to shut up a compiler warning

Diego Biurrun git at videolan.org
Sun May 20 23:00:49 CEST 2012


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Wed Apr 11 15:00:37 2012 +0200| [0c517644b267d6bb41f898104725346d92202cc7] | committer: Diego Biurrun

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 *’

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0c517644b267d6bb41f898104725346d92202cc7
---

 libavcodec/utils.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 9ec4a9e..d2ee9f8 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.



More information about the ffmpeg-cvslog mailing list