From a5f75b83358c70c4ed632ff9c149ca515f5c3b40 Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 24 Feb 2003 22:46:48 +0000 Subject: forgot ... git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9501 b3059339-0415-0410-9bf9-f77b7e298cf2 --- TOOLS/mwallp/jpeg.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'TOOLS') diff --git a/TOOLS/mwallp/jpeg.c b/TOOLS/mwallp/jpeg.c index 693c00c845..0679418e9f 100644 --- a/TOOLS/mwallp/jpeg.c +++ b/TOOLS/mwallp/jpeg.c @@ -16,7 +16,7 @@ #include "swscale.h" #include "rgb2rgb.h" -static SwsContext *swsContext=NULL; +static struct SwsContext *swsContext=NULL; typedef struct { @@ -134,12 +134,12 @@ int decode_jpeg(void* data,int len,char* dbuffer,int dwidth,int dheight, int dst jpeg_finish_decompress(&cinfo); jpeg_destroy_decompress(&cinfo); - swsContext= getSwsContextFromCmdLine(width,height, in_fmt, + swsContext= sws_getContextFromCmdLine(width,height, in_fmt, dwidth,dheight, IMGFMT_BGR|dbpp); - swsContext->swScale(swsContext,&img,&row_stride,0,height,&dbuffer, &dstride); + sws_scale(swsContext,&img,&row_stride,0,height,&dbuffer, &dstride); - freeSwsContext(swsContext); + sws_freeContext(swsContext); free(img); -- cgit v1.2.3