1
mirror of https://github.com/mpv-player/mpv synced 2024-08-08 13:25:45 +02:00

lastminute divbyzero fix by Attila Kinali ;)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3960 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-01-02 23:38:16 +00:00
parent b7c8743092
commit 349677168c

View File

@ -607,6 +607,11 @@ static int mga_vid_set_config(mga_vid_config_t *config)
printk(KERN_DEBUG "mga_vid: Setting up a %dx%d+%d+%d video window (src %dx%d) format %X\n",
dw, dh, x, y, sw, sh, config->format);
if(sw<4 || sh<4 || dw<4 || dh<4){
printk(KERN_ERR "mga_vid: Invalid src/dest dimenstions\n");
return -1;
}
//FIXME check that window is valid and inside desktop
//FIXME figure out a better way to allocate memory on card