Mercurial > mplayer.hg
changeset 29246:8861e08033eb
Add const qualifier to param argument of sws_getContext() and
sws_getCachedContext(). Fixes the warning:
swscale.c:3408: warning: assignment discards qualifiers from pointer target type
author | diego |
---|---|
date | Sun, 10 May 2009 14:00:00 +0000 |
parents | 294522d3c22e |
children | fe871e69b1b3 |
files | libswscale/swscale.c libswscale/swscale.h |
diffstat | 2 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libswscale/swscale.c Sun May 10 11:37:04 2009 +0000 +++ b/libswscale/swscale.c Sun May 10 14:00:00 2009 +0000 @@ -2371,7 +2371,8 @@ } SwsContext *sws_getContext(int srcW, int srcH, enum PixelFormat srcFormat, int dstW, int dstH, enum PixelFormat dstFormat, int flags, - SwsFilter *srcFilter, SwsFilter *dstFilter, double *param){ + SwsFilter *srcFilter, SwsFilter *dstFilter, const double *param) +{ SwsContext *c; int i; @@ -3400,7 +3401,7 @@ struct SwsContext *sws_getCachedContext(struct SwsContext *context, int srcW, int srcH, enum PixelFormat srcFormat, int dstW, int dstH, enum PixelFormat dstFormat, int flags, - SwsFilter *srcFilter, SwsFilter *dstFilter, double *param) + SwsFilter *srcFilter, SwsFilter *dstFilter, const double *param) { static const double default_param[2] = {SWS_PARAM_DEFAULT, SWS_PARAM_DEFAULT};
--- a/libswscale/swscale.h Sun May 10 11:37:04 2009 +0000 +++ b/libswscale/swscale.h Sun May 10 14:00:00 2009 +0000 @@ -130,7 +130,7 @@ struct SwsContext *sws_getContext(int srcW, int srcH, enum PixelFormat srcFormat, int dstW, int dstH, enum PixelFormat dstFormat, int flags, SwsFilter *srcFilter, - SwsFilter *dstFilter, double *param); + SwsFilter *dstFilter, const double *param); /** * Scales the image slice in \p srcSlice and puts the resulting scaled @@ -258,6 +258,6 @@ int srcW, int srcH, enum PixelFormat srcFormat, int dstW, int dstH, enum PixelFormat dstFormat, int flags, SwsFilter *srcFilter, - SwsFilter *dstFilter, double *param); + SwsFilter *dstFilter, const double *param); #endif /* SWSCALE_SWSCALE_H */