History

Simplify Commited in SoC by Vitor Sessak on 2008-05-24 16:55:47

Originally committed as revision 13353 to svn://svn.ffmpeg.org/ffmpeg/trunk

Vitor Sessak committed 18 years ago

Commit c8807911 parent c956dd41 file · +5 −9Browse files

Showing the changes to libavfilter/graphparser.c (1 of 1 file). Show all

Unified · Split

libavfilter/graphparser.c+5−9
@@ -258,7 +258,6 @@ static int parse_inputs(const char **buf, AVFilterInOut **currInputs, · 257 unmodified lines
258 258
259 while(**buf == '[') {259 while(**buf == '[') {
260 char *name = parse_link_name(buf, log_ctx);260 char *name = parse_link_name(buf, log_ctx);
261 AVFilterInOut *link_to_add;
262 AVFilterInOut *match;261 AVFilterInOut *match;
263 262
264 if(!name)263 if(!name)
@@ -275,18 +274,15 @@ static int parse_inputs(const char **buf, AVFilterInOut **currInputs, · 10 unmodified lines
275 "Label \"%s\" appears twice as input!\n", match->name);274 "Label \"%s\" appears twice as input!\n", match->name);
276 return -1;275 return -1;
277 }276 }
278
279 link_to_add = match;
280 } else {277 } else {
281 /* Not in the list, so add it as an input */278 /* Not in the list, so add it as an input */
282 link_to_add = av_mallocz(sizeof(AVFilterInOut));279 match = av_mallocz(sizeof(AVFilterInOut));
283 280 match->name = name;
284 link_to_add->name = name;281 match->type = LinkTypeIn;
285 link_to_add->type = LinkTypeIn;282 match->pad_idx = pad;
286 link_to_add->pad_idx = pad;
287 }283 }
288 284
289 insert_inout(currInputs, link_to_add);285 insert_inout(currInputs, match);
290 286
291 *buf += consume_whitespace(*buf);287 *buf += consume_whitespace(*buf);
292 pad++;288 pad++;

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