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
258258
259259 while(**buf == '[') {
260260 char *name = parse_link_name(buf, log_ctx);
261− AVFilterInOut *link_to_add;
262261 AVFilterInOut *match;
263262
264263 if(!name)
@@ -275,18 +274,15 @@ static int parse_inputs(const char **buf, AVFilterInOut **currInputs, · 10 unmodified lines
275274 "Label \"%s\" appears twice as input!\n", match->name);
276275 return -1;
277276 }
278−
279− link_to_add = match;
280277 } else {
281278 /* Not in the list, so add it as an input */
282− link_to_add = av_mallocz(sizeof(AVFilterInOut));
283−
284− link_to_add->name = name;
285− link_to_add->type = LinkTypeIn;
286− link_to_add->pad_idx = pad;
279+ match = av_mallocz(sizeof(AVFilterInOut));
280+ match->name = name;
281+ match->type = LinkTypeIn;
282+ match->pad_idx = pad;
287283 }
288284
289− insert_inout(currInputs, link_to_add);
285+ insert_inout(currInputs, match);
290286
291287 *buf += consume_whitespace(*buf);
292288 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