From 1f8851863813c6a94cd1d6e2ca5fb108cd6ed61f Mon Sep 17 00:00:00 2001 From: lucabe Date: Sun, 17 Sep 2006 15:02:13 +0000 Subject: Use PIX_FMT_* instead of IMGFMT_* when calling sws_getContext() git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19876 b3059339-0415-0410-9bf9-f77b7e298cf2 --- spudec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'spudec.c') diff --git a/spudec.c b/spudec.c index 0b0327e4e5..f5eb20f786 100644 --- a/spudec.c +++ b/spudec.c @@ -23,6 +23,7 @@ #include #include "libvo/video_out.h" #include "spudec.h" +#include "avutil.h" #include "libswscale/swscale.h" #define MIN(a, b) ((a)<(b)?(a):(b)) @@ -754,7 +755,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, NULL); + ctx=sws_getContext(sw, sh, PIX_FMT_GRAY8, dw, dh, PIX_FMT_GRAY8, 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); -- cgit v1.2.3