[FFmpeg-cvslog] r13297 - in trunk/libavfilter: graphparser.c graphparser.h
vitor
subversion
Sat May 24 22:39:23 CEST 2008
Author: vitor
Date: Sat May 24 22:39:22 2008
New Revision: 13297
Log:
Use '[' and ']' for label naming
Commited in SoC by Vitor Sessak on 2008-04-06 19:02:56
Modified:
trunk/libavfilter/graphparser.c
trunk/libavfilter/graphparser.h
Modified: trunk/libavfilter/graphparser.c
==============================================================================
--- trunk/libavfilter/graphparser.c (original)
+++ trunk/libavfilter/graphparser.c Sat May 24 22:39:22 2008
@@ -117,8 +117,8 @@ static char *consume_string(const char *
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 *
if (!*name[0])
goto fail;
- if (*(*buf)++ != ')')
+ if (*(*buf)++ != ']')
goto fail;
return;
@@ -211,7 +211,7 @@ static int parse_inouts(const char **buf
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
static const char *skip_inouts(const char *buf)
{
- while (*buf == '(') {
- buf += strcspn(buf, ")");
+ while (*buf == '[') {
+ buf += strcspn(buf, "]");
buf++;
}
return buf;
Modified: trunk/libavfilter/graphparser.h
==============================================================================
--- trunk/libavfilter/graphparser.h (original)
+++ trunk/libavfilter/graphparser.h Sat May 24 22:39:22 2008
@@ -35,6 +35,6 @@
* @param inpad pad index of the output
* @return zero on success, -1 on error
*/
-int avfilter_graph_parse_chain(AVFilterGraph *graph, const char *filters, AVFilterContext *in, int inpad, AVFilterContext *out, int outpad);
+int avfilter_parse_graph(AVFilterGraph *graph, const char *filters, AVFilterContext *in, int inpad, AVFilterContext *out, int outpad);
#endif /* FFMPEG_GRAPHPARSER_H */
More information about the ffmpeg-cvslog
mailing list