From 7950e519bb094897f957b9a9531cc60ba46cbc91 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Wed, 27 Mar 2013 18:36:51 +0100 Subject: Disable deprecation warnings for cases where a replacement is available --- libavfilter/internal.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libavfilter/internal.h') diff --git a/libavfilter/internal.h b/libavfilter/internal.h index 40b33af..12655bc 100644 --- a/libavfilter/internal.h +++ b/libavfilter/internal.h @@ -24,6 +24,7 @@ * internal API functions */ +#include "libavutil/internal.h" #include "avfilter.h" #include "thread.h" #include "version.h" @@ -166,7 +167,9 @@ static inline void ff_insert_inpad(AVFilterContext *f, unsigned index, ff_insert_pad(index, &f->nb_inputs, offsetof(AVFilterLink, dstpad), &f->input_pads, &f->inputs, p); #if FF_API_FOO_COUNT +FF_DISABLE_DEPRECATION_WARNINGS f->input_count = f->nb_inputs; +FF_ENABLE_DEPRECATION_WARNINGS #endif } @@ -177,7 +180,9 @@ static inline void ff_insert_outpad(AVFilterContext *f, unsigned index, ff_insert_pad(index, &f->nb_outputs, offsetof(AVFilterLink, srcpad), &f->output_pads, &f->outputs, p); #if FF_API_FOO_COUNT +FF_DISABLE_DEPRECATION_WARNINGS f->output_count = f->nb_outputs; +FF_ENABLE_DEPRECATION_WARNINGS #endif } -- cgit v1.1