1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-04 15:34:31 +00:00
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10002 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2003-04-27 09:45:38 +00:00
parent 456551fc08
commit 38fba566e5

View File

@ -134,8 +134,8 @@ int decode_jpeg(void* data,int len,char* dbuffer,int dwidth,int dheight, int dst
jpeg_finish_decompress(&cinfo);
jpeg_destroy_decompress(&cinfo);
swsContext= sws_getContextFromCmdLine(width,height, in_fmt,
dwidth,dheight, IMGFMT_BGR|dbpp);
swsContext= sws_getContext(width,height, in_fmt,
dwidth,dheight, IMGFMT_BGR|dbpp, SWS_BICUBIC, NULL, NULL);
sws_scale(swsContext,&img,&row_stride,0,height,&dbuffer, &dstride);