forgot ...

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9501 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2003-02-24 22:46:48 +00:00
parent 546b584627
commit a5f75b8335
1 changed files with 4 additions and 4 deletions

View File

@ -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);