History

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

Vitor Sessak committed 18 years ago

Commit d7ff2291 parent 92973a02 files · +7 −7Browse files

Unified · Split

2 files
  1. libavfilter/graphparser.c +6 −6
  2. libavfilter/graphparser.h +1 −1
libavfilter/graphparser.c+6−6
@@ -117,8 +117,8 @@ static char *consume_string(const char **buf) · 116 unmodified lines
117117 if(*in) in++;
118118 break;
119119 case 0:
120− case ')':
121− case '(':
120+ case ']':
121+ case '[':
122122 case '=':
123123 case ',':
124124 *out++= 0;
@@ -146,7 +146,7 @@ static void parse_link_name(const char **buf, char **name) · 21 unmodified lines
146146 if (!*name[0])
147147 goto fail;
148148
149− if (*(*buf)++ != ')')
149+ if (*(*buf)++ != ']')
150150 goto fail;
151151
152152 return;
@@ -211,7 +211,7 @@ static int parse_inouts(const char **buf, AVFilterInOut **inout, int firstpad, · 58 unmodified lines
211211 enum LinkType type, AVFilterContext *filter)
212212 {
213213 int pad = firstpad;
214− while (**buf == '(') {
214+ while (**buf == '[') {
215215 AVFilterInOut *inoutn = av_malloc(sizeof(AVFilterInOut));
216216 parse_link_name(buf, &inoutn->name);
217217 inoutn->type = type;
@@ -225,8 +225,8 @@ static int parse_inouts(const char **buf, AVFilterInOut **inout, int firstpad, · 7 unmodified lines
225225
226226 static const char *skip_inouts(const char *buf)
227227 {
228− while (*buf == '(') {
229− buf += strcspn(buf, ")");
228+ while (*buf == '[') {
229+ buf += strcspn(buf, "]");
230230 buf++;
231231 }
232232 return buf;
libavfilter/graphparser.h+1−1
@@ -35,6 +35,6 @@ · 34 unmodified lines
3535 * @param inpad pad index of the output
3636 * @return zero on success, -1 on error
3737 */
38−int avfilter_graph_parse_chain(AVFilterGraph *graph, const char *filters, AVFilterContext *in, int inpad, AVFilterContext *out, int outpad);
38+int avfilter_parse_graph(AVFilterGraph *graph, const char *filters, AVFilterContext *in, int inpad, AVFilterContext *out, int outpad);
3939
4040 #endif /* FFMPEG_GRAPHPARSER_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t