From 113b85e0b7bebd95adcbc0ff23d8565f4a98e014 Mon Sep 17 00:00:00 2001 From: attila Date: Sun, 25 Jun 2006 15:50:19 +0000 Subject: fail with an error if the source resolution is larger than 1023x1023 when using -vo (x)mga git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18815 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/mga_common.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libvo') diff --git a/libvo/mga_common.c b/libvo/mga_common.c index ba8fce6e57..a6a6e7b396 100644 --- a/libvo/mga_common.c +++ b/libvo/mga_common.c @@ -371,6 +371,12 @@ static int mga_init(int width,int height,unsigned int format){ return (-1); } + if(width>1023 || height >1024) + { + mp_msg(MSGT_VO,MSGL_ERR, MGSTR_LIBVO_MGA_ResolutionTooHigh); + return (-1); + } + mga_vid_config.src_width = width; mga_vid_config.src_height= height; if(!mga_vid_config.dest_width) -- cgit v1.2.3