Fix resizing when zoom is used and image size changes between frames.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5369 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
atmos4 2002-03-27 04:16:38 +00:00
parent ec3460e062
commit eff0ca9eaa
1 changed files with 2 additions and 3 deletions

View File

@ -392,9 +392,8 @@ static uint32_t config( uint32_t width,uint32_t height,uint32_t d_width,uint32_t
default: draw_alpha_fnc=draw_alpha_null;
}
/* we avoid unnecessary allocating the swsContext here as it is allocated during draw_slice if zoom is on */
if(!zoomFlag)
swsContext= getSwsContextFromCmdLine(width, height, in_format, width, height, out_format );
/* always allocate swsContext as size could change between frames */
swsContext= getSwsContextFromCmdLine(width, height, in_format, width, height, out_format );
// printf( "X11 color mask: R:%lX G:%lX B:%lX\n",myximage->red_mask,myximage->green_mask,myximage->blue_mask );