diff libvo/mga_common.c @ 18811:e23a1c57c406

fail with an error if the source resolution is larger than 1023x1023 when using -vo (x)mga
author attila
date Sun, 25 Jun 2006 15:50:19 +0000
parents 497ebe3ecc2b
children 51782def30a9
line wrap: on
line diff
--- a/libvo/mga_common.c	Sun Jun 25 14:03:56 2006 +0000
+++ b/libvo/mga_common.c	Sun Jun 25 15:50:19 2006 +0000
@@ -371,6 +371,12 @@
             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)