Mercurial > mplayer.hg
diff m_option.c @ 20314:9bd929836c15
\, escaping
applying my own patch due to lack of anyone objecting to it and as its pretty much needed for -vf geq
author | michael |
---|---|
date | Fri, 20 Oct 2006 16:42:36 +0000 |
parents | 4ccb2a53b859 |
children | 6b72edbe78c1 |
line wrap: on
line diff
--- a/m_option.c Fri Oct 20 16:14:49 2006 +0000 +++ b/m_option.c Fri Oct 20 16:42:36 2006 +0000 @@ -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) {