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/utils.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/utils.c')
-rw-r--r-- | libavresample/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavresample/utils.c b/libavresample/utils.c index 172aadb6c9..bab2153b4b 100644 --- a/libavresample/utils.c +++ b/libavresample/utils.c @@ -329,7 +329,8 @@ static int handle_buffered_output(AVAudioResampleContext *avr, int attribute_align_arg avresample_convert(AVAudioResampleContext *avr, uint8_t **output, int out_plane_size, - int out_samples, uint8_t **input, + int out_samples, + uint8_t * const *input, int in_plane_size, int in_samples) { AudioData input_buffer; |