aboutsummaryrefslogtreecommitdiffstats
path: root/libavresample/avresample.h
diff options
context:
space:
mode:
authorKip Warner <kip@thevertigo.com>2015-12-10 15:52:50 -0800
committerLuca Barbato <lu_zero@gentoo.org>2015-12-14 15:16:33 +0100
commitcc4c24208159200b7aff5b5c313903c7f23fa345 (patch)
treeafd5f78231b1b8ba129d6f15ebd2af3ae37cff5b /libavresample/avresample.h
parent5bc223b15d064e328ff90b0241fa1191f1d2786d (diff)
downloadffmpeg-cc4c24208159200b7aff5b5c313903c7f23fa345.tar.gz
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/avresample.h')
-rw-r--r--libavresample/avresample.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavresample/avresample.h b/libavresample/avresample.h
index 1dca6e4c69..c66798c08c 100644
--- a/libavresample/avresample.h
+++ b/libavresample/avresample.h
@@ -377,8 +377,9 @@ int avresample_get_out_samples(AVAudioResampleContext *avr, int in_nb_samples);
* output FIFO
*/
int avresample_convert(AVAudioResampleContext *avr, uint8_t **output,
- int out_plane_size, int out_samples, uint8_t **input,
- int in_plane_size, int in_samples);
+ int out_plane_size, int out_samples,
+ uint8_t * const *input, int in_plane_size,
+ int in_samples);
/**
* Return the number of samples currently in the resampling delay buffer.