[FFmpeg-cvslog] r12064 - trunk/libavfilter/defaults.c

vitor subversion
Fri Feb 15 22:58:30 CET 2008


Author: vitor
Date: Fri Feb 15 22:58:29 2008
New Revision: 12064

Log:
Separate the process of creating links between filters from that of configuring
the links.

Commited in SoC by Bobby Bingham on 2007-08-07 21:02:18


Modified:
   trunk/libavfilter/defaults.c

Modified: trunk/libavfilter/defaults.c
==============================================================================
--- trunk/libavfilter/defaults.c	(original)
+++ trunk/libavfilter/defaults.c	Fri Feb 15 22:58:29 2008
@@ -104,6 +104,16 @@ int avfilter_default_config_output_link(
 }
 
 /**
+ * default config_link() implementation for input video links to simplify
+ * the implementation of one input one output video filters */
+int avfilter_default_config_input_link(AVFilterLink *link)
+{
+    if(!link->dst->output_count)
+        return 0;
+    return avfilter_config_link(link->dst->outputs[0]);
+}
+
+/**
  * default query_formats() implementation for output video links to simplify
  * the implementation of one input one output video filters */
 int *avfilter_default_query_output_formats(AVFilterLink *link)




More information about the ffmpeg-cvslog mailing list