changeset 22032:62d7b935df2e

fix a segfault if -x264encopts is the last commandline option (with no argument)
author lorenm
date Sun, 28 Jan 2007 20:22:21 +0000
parents 48036dc7f9d9
children a9b8e965de13
files libmpcodecs/ve_x264.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_x264.c	Sun Jan 28 19:25:03 2007 +0000
+++ b/libmpcodecs/ve_x264.c	Sun Jan 28 20:22:21 2007 +0000
@@ -86,6 +86,11 @@
         initted = 1;
     }
 
+    if(!arg) {
+        parse_error = 1;
+        return;
+    }
+
     while(*arg) {
         char *name = arg;
         char *value;