mirror of https://github.com/mpv-player/mpv
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
This commit is contained in:
parent
e2d5a13f76
commit
920ee4dc53
4
spudec.c
4
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;
|
||||
|
|
Loading…
Reference in New Issue