summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-05-24 20:42:18 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-05-24 20:42:18 +0000
commit5b31015a7fd4aebc591d4326fbba079cc348c2e0 (patch)
tree2dc4ef3a5b2c7fde455af72eb0a8b0c95f5b2b96 /libavfilter
parentc880791fc1d4ce8c083fa922f40fa498c5cf0389 (diff)
Remove unnused var
Commited in SoC by Vitor Sessak on 2008-05-24 16:58:58 Originally committed as revision 13354 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/graphparser.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index 489fa2e61d..c7c6a67e47 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -341,7 +341,6 @@ int avfilter_parse_graph(AVFilterGraph *graph, const char *filters,
{
int index = 0;
char chr = 0;
- int pad = 0;
AVFilterInOut *currInputs = NULL;
@@ -349,9 +348,7 @@ int avfilter_parse_graph(AVFilterGraph *graph, const char *filters,
AVFilterContext *filter;
filters += consume_whitespace(filters);
- pad = parse_inputs(&filters, &currInputs, &openLinks, log_ctx);
-
- if(pad < 0)
+ if(parse_inputs(&filters, &currInputs, &openLinks, log_ctx) < 0)
goto fail;
filter = parse_filter(&filters, graph, index, log_ctx);
@@ -362,17 +359,14 @@ int avfilter_parse_graph(AVFilterGraph *graph, const char *filters,
if(filter->input_count == 1 && !currInputs && !index) {
// First input can be ommitted if it is "[in]"
const char *tmp = "[in]";
- pad = parse_inputs(&tmp, &currInputs, &openLinks, log_ctx);
- if(pad < 0)
+ if(parse_inputs(&tmp, &currInputs, &openLinks, log_ctx))
goto fail;
}
if(link_filter_inouts(filter, &currInputs, &openLinks, log_ctx) < 0)
goto fail;
- pad = parse_outputs(&filters, &currInputs, &openLinks, log_ctx);
-
- if(pad < 0)
+ if(parse_outputs(&filters, &currInputs, &openLinks, log_ctx))
goto fail;
filters += consume_whitespace(filters);