[FFmpeg-devel] [PATCH] Move link_dpad and link_spad macros from avfilter.c to internal.h, so

Stefano Sabatini stefano.sabatini-lala
Mon Jul 19 18:19:56 CEST 2010


---
 libavfilter/avfilter.c |    4 ----
 libavfilter/internal.h |    4 ++++
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index dc8f90d..e81fa48 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -41,10 +41,6 @@ const char *avfilter_license(void)
     return LICENSE_PREFIX FFMPEG_LICENSE + sizeof(LICENSE_PREFIX) - 1;
 }
 
-/** helper macros to get the in/out pad on the dst/src filter */
-#define link_dpad(link)     link->dst-> input_pads[link->dstpad]
-#define link_spad(link)     link->src->output_pads[link->srcpad]
-
 AVFilterPicRef *avfilter_ref_pic(AVFilterPicRef *ref, int pmask)
 {
     AVFilterPicRef *ret = av_malloc(sizeof(AVFilterPicRef));
diff --git a/libavfilter/internal.h b/libavfilter/internal.h
index 9ddde36..6f7479e 100644
--- a/libavfilter/internal.h
+++ b/libavfilter/internal.h
@@ -26,6 +26,10 @@
 
 #include "avfilter.h"
 
+/** helper macros to get the in/out pad on the dst/src filter */
+#define link_dpad(link)     link->dst-> input_pads[link->dstpad]
+#define link_spad(link)     link->src->output_pads[link->srcpad]
+
 void ff_dprintf_picref(void *ctx, AVFilterPicRef *picref, int end);
 
 void ff_dprintf_link(void *ctx, AVFilterLink *link, int end);
-- 
1.6.0.4




More information about the ffmpeg-devel mailing list