aboutsummaryrefslogtreecommitdiff
path: root/libavutil/samplefmt.c
diff options
context:
space:
mode:
authorDiego Biurrun2012-04-11 14:51:57 +0200
committerDiego Biurrun2012-05-08 11:35:49 +0200
commitce473de921d56abadc417ba267505fb5165b171c (patch)
tree389c4c0bdea8f5eac0954ef5dae9707be408b3e6 /libavutil/samplefmt.c
parent464e9ab011897a1220c2a1b8af336bdf4d0b1dd9 (diff)
av_samples_fill_array: Mark unmodified function argument as const.
libavcodec/utils.c:274: warning: passing argument 3 of ‘av_samples_fill_arrays’ discards qualifiers from pointer target type ./libavutil/samplefmt.h:151: note: expected ‘uint8_t *’ but argument is of type ‘const uint8_t *’
Diffstat (limited to 'libavutil/samplefmt.c')
-rw-r--r--libavutil/samplefmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/samplefmt.c b/libavutil/samplefmt.c
index 0a2ffa0387..711afac287 100644
--- a/libavutil/samplefmt.c
+++ b/libavutil/samplefmt.c
@@ -143,7 +143,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,
- uint8_t *buf, int nb_channels, int nb_samples,
+ const uint8_t *buf, int nb_channels, int nb_samples,
enum AVSampleFormat sample_fmt, int align)
{
int ch, planar, buf_size, line_size;