Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-05-25 00:39:22 +0400
committerVitor Sessak <vitor1001@gmail.com>2008-05-25 00:39:22 +0400
commitd7ff2297184e455cca90cc830d1a8be2bb6f0f2b (patch)
treed328b032ef90a8f76caa3874d986d7203cd9fffe /libavfilter/graphparser.c
parent92973a04f0e566576ad896dff39e23098ef926ae (diff)
Use '[' and ']' for label naming
Commited in SoC by Vitor Sessak on 2008-04-06 19:02:56 Originally committed as revision 13297 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/graphparser.c')
-rw-r--r--libavfilter/graphparser.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index 2f0dd3e959..2007b6241f 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -117,8 +117,8 @@ static char *consume_string(const char **buf)
if(*in) in++;
break;
case 0:
- case ')':
- case '(':
+ case ']':
+ case '[':
case '=':
case ',':
*out++= 0;
@@ -146,7 +146,7 @@ static void parse_link_name(const char **buf, char **name)
if (!*name[0])
goto fail;
- if (*(*buf)++ != ')')
+ if (*(*buf)++ != ']')
goto fail;
return;
@@ -211,7 +211,7 @@ static int parse_inouts(const char **buf, AVFilterInOut **inout, int firstpad,
enum LinkType type, AVFilterContext *filter)
{
int pad = firstpad;
- while (**buf == '(') {
+ while (**buf == '[') {
AVFilterInOut *inoutn = av_malloc(sizeof(AVFilterInOut));
parse_link_name(buf, &inoutn->name);
inoutn->type = type;
@@ -225,8 +225,8 @@ static int parse_inouts(const char **buf, AVFilterInOut **inout, int firstpad,
static const char *skip_inouts(const char *buf)
{
- while (*buf == '(') {
- buf += strcspn(buf, ")");
+ while (*buf == '[') {
+ buf += strcspn(buf, "]");
buf++;
}
return buf;