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
117 if(*in) in++;117 if(*in) in++;
118 break;118 break;
119 case 0:119 case 0:
120 case ')':120 case ']':
121 case '(':121 case '[':
122 case '=':122 case '=':
123 case ',':123 case ',':
124 *out++= 0;124 *out++= 0;
@@ -146,7 +146,7 @@ static void parse_link_name(const char **buf, char **name) · 21 unmodified lines
146 if (!*name[0])146 if (!*name[0])
147 goto fail;147 goto fail;
148 148
149 if (*(*buf)++ != ')')149 if (*(*buf)++ != ']')
150 goto fail;150 goto fail;
151 151
152 return;152 return;
@@ -211,7 +211,7 @@ static int parse_inouts(const char **buf, AVFilterInOut **inout, int firstpad, · 58 unmodified lines
211 enum LinkType type, AVFilterContext *filter)211 enum LinkType type, AVFilterContext *filter)
212{212{
213 int pad = firstpad;213 int pad = firstpad;
214 while (**buf == '(') {214 while (**buf == '[') {
215 AVFilterInOut *inoutn = av_malloc(sizeof(AVFilterInOut));215 AVFilterInOut *inoutn = av_malloc(sizeof(AVFilterInOut));
216 parse_link_name(buf, &inoutn->name);216 parse_link_name(buf, &inoutn->name);
217 inoutn->type = type;217 inoutn->type = type;
@@ -225,8 +225,8 @@ static int parse_inouts(const char **buf, AVFilterInOut **inout, int firstpad, · 7 unmodified lines
225 225
226static const char *skip_inouts(const char *buf)226static const char *skip_inouts(const char *buf)
227{227{
228 while (*buf == '(') {228 while (*buf == '[') {
229 buf += strcspn(buf, ")");229 buf += strcspn(buf, "]");
230 buf++;230 buf++;
231 }231 }
232 return buf;232 return buf;
libavfilter/graphparser.h+1−1
@@ -35,6 +35,6 @@ · 34 unmodified lines
35 * @param inpad pad index of the output35 * @param inpad pad index of the output
36 * @return zero on success, -1 on error36 * @return zero on success, -1 on error
37 */37 */
38int avfilter_graph_parse_chain(AVFilterGraph *graph, const char *filters, AVFilterContext *in, int inpad, AVFilterContext *out, int outpad);38int avfilter_parse_graph(AVFilterGraph *graph, const char *filters, AVFilterContext *in, int inpad, AVFilterContext *out, int outpad);
39 39
40#endif /* FFMPEG_GRAPHPARSER_H */40#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