mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00: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:
parent
b7c8743092
commit
349677168c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user