From cc4c24208159200b7aff5b5c313903c7f23fa345 Mon Sep 17 00:00:00 2001 From: Kip Warner Date: Thu, 10 Dec 2015 15:52:50 -0800 Subject: avresample: Mark avresample_buffer() as pointer to const That buffer is read only and marking it accordingly let the user passing a constant buffer to it without having a const-correctness warning. Signed-off-by: Luca Barbato --- libavresample/audio_data.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libavresample/audio_data.h') diff --git a/libavresample/audio_data.h b/libavresample/audio_data.h index 1541976583..a478592cb5 100644 --- a/libavresample/audio_data.h +++ b/libavresample/audio_data.h @@ -76,9 +76,10 @@ int ff_audio_data_set_channels(AudioData *a, int channels); * @param name name for debug logging (can be NULL) * @return 0 on success, negative AVERROR value on error */ -int ff_audio_data_init(AudioData *a, uint8_t **src, int plane_size, int channels, - int nb_samples, enum AVSampleFormat sample_fmt, - int read_only, const char *name); +int ff_audio_data_init(AudioData *a, uint8_t * const *src, int plane_size, + int channels, int nb_samples, + enum AVSampleFormat sample_fmt, int read_only, + const char *name); /** * Allocate AudioData. -- cgit v1.2.3