]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Simplify
authorvitor <vitor@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 24 May 2008 20:40:26 +0000 (20:40 +0000)
committervitor <vitor@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 24 May 2008 20:40:26 +0000 (20:40 +0000)
Commited in SoC by Vitor Sessak on 2008-04-18 17:57:42

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13318 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavfilter/graphparser.c
libavfilter/graphparser.h

index 4369dad432c8a33a04a1cd45bc8403cc63331ee8..a3cd9b714c4d6182d0b6236241fe8c3bc6642f74 100644 (file)
@@ -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;
 }
 
 
index 278095e9408214541c0e07da308aa035feea3841..c255824e271c77aa4e7086e08514e665c3eefcb3 100644 (file)
@@ -35,6 +35,9 @@
  * @param outpad  pad index of the output
  * @return        zero on success, -1 on error
  */
-int avfilter_parse_graph(AVFilterGraph *graph, const char *filters, AVFilterContext *in, int inpad, AVFilterContext *out, int outpad);
+int avfilter_parse_graph(AVFilterGraph *graph, const char *filters,
+                         AVFilterContext *in, int inpad,
+                         AVFilterContext *out, int outpad,
+                         AVClass *log_ctx);
 
 #endif  /* FFMPEG_GRAPHPARSER_H */