[MPlayer-cvslog] r20320 - trunk/m_option.c

michael subversion at mplayerhq.hu
Fri Oct 20 18:42:36 CEST 2006


Author: michael
Date: Fri Oct 20 18:42:36 2006
New Revision: 20320

Modified:
   trunk/m_option.c

Log:
\, escaping
applying my own patch due to lack of anyone objecting to it and as its pretty much needed for -vf geq


Modified: trunk/m_option.c
==============================================================================
--- trunk/m_option.c	(original)
+++ trunk/m_option.c	Fri Oct 20 18:42:36 2006
@@ -1672,7 +1672,14 @@
 
   while(ptr[0] != '\0') {
     last_ptr = ptr;
-    ptr = strchr(ptr,LIST_SEPARATOR);
+    for(;;){
+        ptr = strchr(ptr,LIST_SEPARATOR);
+        if(ptr && ptr>last_ptr && ptr[-1]=='\\'){
+            memmove(ptr-1, ptr, strlen(ptr)+1);
+        }else
+            break;
+    }
+
     if(!ptr) {
       r = parse_obj_settings(name,last_ptr,opt->priv,dst ? &res : NULL,n);
       if(r < 0) {



More information about the MPlayer-cvslog mailing list