[MPlayer-dev-eng] [Patch] Option parsing bug in vo_aa.c

Fredrik Kuivinen freku045 at student.liu.se
Fri Jan 11 01:46:06 CET 2002


Hi

With current cvs the following command produces a segfault
mplayer -aadriver stdout

The attached patch fixes this bug.

/ Fredrik Kuivinen

-------------- next part --------------
Index: vo_aa.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_aa.c,v
retrieving revision 1.15
diff -u -3 -p -r1.15 vo_aa.c
--- vo_aa.c	6 Nov 2001 11:21:08 -0000	1.15
+++ vo_aa.c	11 Jan 2002 00:52:26 -0000
@@ -665,7 +665,7 @@ getcolor(char * s){
 int
 vo_aa_parseoption(struct config * conf, char *opt, char *param){
     /* got an option starting with aa */
-    char *pseudoargv[3];
+    char *pseudoargv[4];
     int pseudoargc;
     char * x, *help;
     int i;


More information about the MPlayer-dev-eng mailing list