[MPlayer-cvslog] r22050 - trunk/libmpcodecs/ve_x264.c

lorenm subversion at mplayerhq.hu
Sun Jan 28 21:22:21 CET 2007


Author: lorenm
Date: Sun Jan 28 21:22:21 2007
New Revision: 22050

Modified:
   trunk/libmpcodecs/ve_x264.c

Log:
fix a segfault if -x264encopts is the last commandline option (with no argument)


Modified: trunk/libmpcodecs/ve_x264.c
==============================================================================
--- trunk/libmpcodecs/ve_x264.c	(original)
+++ trunk/libmpcodecs/ve_x264.c	Sun Jan 28 21:22:21 2007
@@ -86,6 +86,11 @@
         initted = 1;
     }
 
+    if(!arg) {
+        parse_error = 1;
+        return;
+    }
+
     while(*arg) {
         char *name = arg;
         char *value;



More information about the MPlayer-cvslog mailing list