[FFmpeg-cvslog] swr: Mark src as const in swr_resample()
Michael Niedermayer
git at videolan.org
Fri Oct 21 00:42:41 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Oct 21 00:30:41 2011 +0200| [e6459720b59073e98707f87243f5ee7bd7a3ecd7] | committer: Michael Niedermayer
swr: Mark src as const in swr_resample()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e6459720b59073e98707f87243f5ee7bd7a3ecd7
---
libswresample/resample2.c | 2 +-
libswresample/swresample_internal.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libswresample/resample2.c b/libswresample/resample2.c
index 6510111..ac1610a 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 a9f1fe1..4c6cf67 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);
More information about the ffmpeg-cvslog
mailing list