summaryrefslogtreecommitdiffstats
path: root/spudec.c
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-18 00:08:17 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-18 00:08:17 +0000
commit54df7e4a3e18fd212bae3bdf665cd0455f031eb6 (patch)
tree43d1dfd83eaa1c4472be09f234377cf2af6fc422 /spudec.c
parent5e71ad8c1ee1248b32924aecc0b4bce42265e3b8 (diff)
downloadmpv-54df7e4a3e18fd212bae3bdf665cd0455f031eb6.tar.bz2
mpv-54df7e4a3e18fd212bae3bdf665cd0455f031eb6.tar.xz
passing an array or double precission parameters for the scaling function, instead of missusing a few bits of the flags
fixing the naming of the scaling functions a little git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13374 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'spudec.c')
-rw-r--r--spudec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/spudec.c b/spudec.c
index 10ab1f69fb..f6102f6147 100644
--- a/spudec.c
+++ b/spudec.c
@@ -752,7 +752,7 @@ void sws_spu_image(unsigned char *d1, unsigned char *d2, int dw, int dh, int ds,
oldvar = spu_gaussvar;
}
- ctx=sws_getContext(sw, sh, IMGFMT_Y800, dw, dh, IMGFMT_Y800, SWS_GAUSS, &filter, NULL);
+ ctx=sws_getContext(sw, sh, IMGFMT_Y800, dw, dh, IMGFMT_Y800, SWS_GAUSS, &filter, NULL, NULL);
sws_scale(ctx,&s1,&ss,0,sh,&d1,&ds);
for (i=ss*sh-1; i>=0; i--) if (!s2[i]) s2[i] = 255; //else s2[i] = 1;
sws_scale(ctx,&s2,&ss,0,sh,&d2,&ds);