diff options
author | Kip Warner <kip@thevertigo.com> | 2015-12-11 02:52:50 +0300 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-12-14 17:16:33 +0300 |
commit | cc4c24208159200b7aff5b5c313903c7f23fa345 (patch) | |
tree | afd5f78231b1b8ba129d6f15ebd2af3ae37cff5b /libavresample/audio_data.c | |
parent | 5bc223b15d064e328ff90b0241fa1191f1d2786d (diff) |
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 <lu_zero@gentoo.org>
Diffstat (limited to 'libavresample/audio_data.c')
-rw-r--r-- | libavresample/audio_data.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavresample/audio_data.c b/libavresample/audio_data.c index 7a6fe74551..2d01b8cfaa 100644 --- a/libavresample/audio_data.c +++ b/libavresample/audio_data.c @@ -70,9 +70,10 @@ int ff_audio_data_set_channels(AudioData *a, int channels) return 0; } -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) { int p; |