summaryrefslogtreecommitdiff
path: root/libavfilter/graphparser.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-05-24 20:40:26 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-05-24 20:40:26 +0000
commit5cb9c725f2a556b62553bc1473d0861c0d7456d9 (patch)
tree05b425c321840672c1a77b00953639798c0cc6c3 /libavfilter/graphparser.c
parent3a70bb2d762100050787d51d93cdc6fb96a619ca (diff)
Simplify
Commited in SoC by Vitor Sessak on 2008-04-18 17:57:42 Originally committed as revision 13318 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/graphparser.c')
-rw-r--r--libavfilter/graphparser.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index 4369dad432..a3cd9b714c 100644
--- a/libavfilter/graphparser.c
+++ b/libavfilter/graphparser.c
@@ -225,22 +225,20 @@ static int handle_link(char *name, AVFilterInOut **inout, int pad,
if(p->type == LinkTypeIn && type == LinkTypeOut) {
if(link_filter(filter, pad, p->filter, p->pad_idx, log_ctx) < 0)
- goto fail;
+ return -1;
} else if(p->type == LinkTypeOut && type == LinkTypeIn) {
if(link_filter(p->filter, p->pad_idx, filter, pad, log_ctx) < 0)
- goto fail;
+ return -1;
} else {
av_log(log_ctx, AV_LOG_ERROR,
"Two links named '%s' are either both input or both output\n",
name);
- goto fail;
+ return -1;
}
p->filter = NULL;
return 0;
- fail:
- return -1;
}