[FFmpeg-devel] [PATCH 03/15] samplefmt: Fix warning about discarded qualifiers
jamal
jamrial at gmail.com
Fri Jul 27 10:23:14 CEST 2012
---
libavutil/samplefmt.c | 2 +-
libavutil/samplefmt.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavutil/samplefmt.c b/libavutil/samplefmt.c
index a9c12ed..52b77c6 100644
--- a/libavutil/samplefmt.c
+++ b/libavutil/samplefmt.c
@@ -152,7 +152,7 @@ int av_samples_get_buffer_size(int *linesize, int nb_channels, int nb_samples,
}
int av_samples_fill_arrays(uint8_t **audio_data, int *linesize,
- const uint8_t *buf, int nb_channels, int nb_samples,
+ uint8_t *buf, int nb_channels, int nb_samples,
enum AVSampleFormat sample_fmt, int align)
{
int ch, planar, buf_size, line_size;
diff --git a/libavutil/samplefmt.h b/libavutil/samplefmt.h
index 4ce606d..dccce6e 100644
--- a/libavutil/samplefmt.h
+++ b/libavutil/samplefmt.h
@@ -179,7 +179,7 @@ int av_samples_get_buffer_size(int *linesize, int nb_channels, int nb_samples,
* @return 0 on success or a negative error code on failure
*/
int av_samples_fill_arrays(uint8_t **audio_data, int *linesize,
- const uint8_t *buf,
+ uint8_t *buf,
int nb_channels, int nb_samples,
enum AVSampleFormat sample_fmt, int align);
--
1.7.8.6
More information about the ffmpeg-devel
mailing list