[FFmpeg-cvslog] samplefmt: Fix warning about discarded qualifier

jamal git at videolan.org
Mon Jul 30 04:00:50 CEST 2012


ffmpeg | branch: master | jamal <jamrial at gmail.com> | Fri Jul 27 13:11:02 2012 -0300| [753a1b09882b921c0874fa11feeaac5684e4ef16] | committer: Michael Niedermayer

samplefmt: Fix warning about discarded qualifier

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavutil/samplefmt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/samplefmt.c b/libavutil/samplefmt.c
index a9c12ed..838d99c 100644
--- a/libavutil/samplefmt.c
+++ b/libavutil/samplefmt.c
@@ -163,7 +163,7 @@ int av_samples_fill_arrays(uint8_t **audio_data, int *linesize,
     if (buf_size < 0)
         return buf_size;
 
-    audio_data[0] = buf;
+    audio_data[0] = (uint8_t *)buf;
     for (ch = 1; planar && ch < nb_channels; ch++)
         audio_data[ch] = audio_data[ch-1] + line_size;
 



More information about the ffmpeg-cvslog mailing list