Browse code

swr: Mark src as const in swr_resample()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2011/10/21 07:30:41
Showing 2 changed files
... ...
@@ -250,7 +250,7 @@ void swr_compensate(struct SwrContext *s, int sample_delta, int compensation_dis
250 250
     c->dst_incr = c->ideal_dst_incr - c->ideal_dst_incr * (int64_t)sample_delta / compensation_distance;
251 251
 }
252 252
 
253
-int swr_resample(AVResampleContext *c, short *dst, short *src, int *consumed, int src_size, int dst_size, int update_ctx){
253
+int swr_resample(AVResampleContext *c, short *dst, const short *src, int *consumed, int src_size, int dst_size, int update_ctx){
254 254
     int dst_index, i;
255 255
     int index= c->index;
256 256
     int frac= c->frac;
... ...
@@ -72,7 +72,7 @@ struct AVResampleContext *swr_resample_init(struct AVResampleContext *, int out_
72 72
 void swr_resample_free(struct AVResampleContext **c);
73 73
 int swr_multiple_resample(struct AVResampleContext *c, AudioData *dst, int dst_size, AudioData *src, int src_size, int *consumed);
74 74
 void swr_resample_compensate(struct AVResampleContext *c, int sample_delta, int compensation_distance);
75
-int swr_resample(struct AVResampleContext *c, short *dst, short *src, int *consumed, int src_size, int dst_size, int update_ctx);
75
+int swr_resample(struct AVResampleContext *c, short *dst, const short *src, int *consumed, int src_size, int dst_size, int update_ctx);
76 76
 
77 77
 int swr_rematrix_init(SwrContext *s);
78 78
 int swr_rematrix(SwrContext *s, AudioData *out, AudioData *in, int len, int mustcopy);