[FFmpeg-cvslog] ffmpeg: fix pointer type (const) warning
Michael Niedermayer
git at videolan.org
Thu May 10 20:13:13 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu May 10 20:03:29 2012 +0200| [b7fe9c7a0899758b405dd4243c76017382e818b6] | committer: Michael Niedermayer
ffmpeg: fix pointer type (const) warning
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b7fe9c7a0899758b405dd4243c76017382e818b6
---
ffmpeg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index c13a15b..b169701 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1760,7 +1760,7 @@ static void do_audio_out(AVFormatContext *s, OutputStream *ost,
buftmp = audio_buf;
size_out = swr_convert(ost->swr, ( uint8_t*[]){buftmp},
allocated_audio_buf_size / (enc->channels * osize),
- buf,
+ (const uint8_t **)buf,
size / (dec->channels * isize));
if (size_out < 0) {
av_log(NULL, AV_LOG_FATAL, "swr_convert failed\n");
More information about the ffmpeg-cvslog
mailing list