summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-08-13 11:08:30 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:15:48 +0200
commit920ee4dc5303b4a3ff42d94ec9e27c513bf1c6b0 (patch)
tree8e1a3b4560313625fce89eef6269d27bd0ece054
parente2d5a13f76efd3234d2cfab422c12f6ada5ac201 (diff)
downloadmpv-920ee4dc5303b4a3ff42d94ec9e27c513bf1c6b0.tar.bz2
mpv-920ee4dc5303b4a3ff42d94ec9e27c513bf1c6b0.tar.xz
spudec.c: mark a parameter const
Mark constant sws_spu_image() parameter as const, fixes the warning: spudec.c:874: warning: passing argument 2 of 'sws_scale' from incompatible pointer type git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31959 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--spudec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/spudec.c b/spudec.c
index 28046444af..5e39846fe6 100644
--- a/spudec.c
+++ b/spudec.c
@@ -852,8 +852,8 @@ static void scale_image(int x, int y, scale_pixel* table_x, scale_pixel* table_y
}
static void sws_spu_image(unsigned char *d1, unsigned char *d2, int dw, int dh,
- int ds, unsigned char *s1, unsigned char *s2, int sw,
- int sh, int ss)
+ int ds, const unsigned char* s1, unsigned char* s2,
+ int sw, int sh, int ss)
{
struct SwsContext *ctx;
static SwsFilter filter;