summaryrefslogtreecommitdiff
path: root/libswresample
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-10-21 00:30:41 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-21 00:30:41 +0200
commite6459720b59073e98707f87243f5ee7bd7a3ecd7 (patch)
tree05b6214993d9297fcb92e05d893d7d47aa963f44 /libswresample
parent76dbb0905a033c5a6a2b9f353f62946ce3c9c788 (diff)
swr: Mark src as const in swr_resample()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample')
-rw-r--r--libswresample/resample2.c2
-rw-r--r--libswresample/swresample_internal.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libswresample/resample2.c b/libswresample/resample2.c
index 6510111182..ac1610aa26 100644
--- a/libswresample/resample2.c
+++ b/libswresample/resample2.c
@@ -250,7 +250,7 @@ void swr_compensate(struct SwrContext *s, int sample_delta, int compensation_dis
c->dst_incr = c->ideal_dst_incr - c->ideal_dst_incr * (int64_t)sample_delta / compensation_distance;
}
-int swr_resample(AVResampleContext *c, short *dst, short *src, int *consumed, int src_size, int dst_size, int update_ctx){
+int swr_resample(AVResampleContext *c, short *dst, const short *src, int *consumed, int src_size, int dst_size, int update_ctx){
int dst_index, i;
int index= c->index;
int frac= c->frac;
diff --git a/libswresample/swresample_internal.h b/libswresample/swresample_internal.h
index a9f1fe1211..4c6cf6764e 100644
--- a/libswresample/swresample_internal.h
+++ b/libswresample/swresample_internal.h
@@ -72,7 +72,7 @@ struct AVResampleContext *swr_resample_init(struct AVResampleContext *, int out_
void swr_resample_free(struct AVResampleContext **c);
int swr_multiple_resample(struct AVResampleContext *c, AudioData *dst, int dst_size, AudioData *src, int src_size, int *consumed);
void swr_resample_compensate(struct AVResampleContext *c, int sample_delta, int compensation_distance);
-int swr_resample(struct AVResampleContext *c, short *dst, short *src, int *consumed, int src_size, int dst_size, int update_ctx);
+int swr_resample(struct AVResampleContext *c, short *dst, const short *src, int *consumed, int src_size, int dst_size, int update_ctx);
int swr_rematrix_init(SwrContext *s);
int swr_rematrix(SwrContext *s, AudioData *out, AudioData *in, int len, int mustcopy);