diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-03-27 18:36:51 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-08-02 19:19:02 +0200 |
commit | 7950e519bb094897f957b9a9531cc60ba46cbc91 (patch) | |
tree | b8bcd2acc2a699c2c219e690d439a3f3eb0a6a44 /libavfilter | |
parent | 3a7050ffed5ce061b114a11e4de4b77aba8efa0b (diff) | |
download | ffmpeg-7950e519bb094897f957b9a9531cc60ba46cbc91.tar.gz |
Disable deprecation warnings for cases where a replacement is available
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/avfilter.c | 3 | ||||
-rw-r--r-- | libavfilter/avfiltergraph.c | 5 | ||||
-rw-r--r-- | libavfilter/buffersink.c | 3 | ||||
-rw-r--r-- | libavfilter/buffersrc.c | 3 | ||||
-rw-r--r-- | libavfilter/internal.h | 5 |
5 files changed, 19 insertions, 0 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 89ca03587e..bfbc0389a9 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -23,6 +23,7 @@ #include "libavutil/channel_layout.h" #include "libavutil/common.h" #include "libavutil/imgutils.h" +#include "libavutil/internal.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/rational.h" @@ -436,8 +437,10 @@ AVFilterContext *ff_filter_alloc(const AVFilter *filter, const char *inst_name) goto err; } #if FF_API_FOO_COUNT +FF_DISABLE_DEPRECATION_WARNINGS ret->output_count = ret->nb_outputs; ret->input_count = ret->nb_inputs; +FF_ENABLE_DEPRECATION_WARNINGS #endif return ret; diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index e93a5bb415..236980ff18 100644 --- a/libavfilter/avfiltergraph.c +++ b/libavfilter/avfiltergraph.c @@ -28,6 +28,7 @@ #include "libavutil/avstring.h" #include "libavutil/channel_layout.h" #include "libavutil/common.h" +#include "libavutil/internal.h" #include "libavutil/log.h" #include "libavutil/opt.h" @@ -127,7 +128,9 @@ int avfilter_graph_add_filter(AVFilterGraph *graph, AVFilterContext *filter) graph->filters[graph->nb_filters++] = filter; #if FF_API_FOO_COUNT +FF_DISABLE_DEPRECATION_WARNINGS graph->filter_count = graph->nb_filters; +FF_ENABLE_DEPRECATION_WARNINGS #endif filter->graph = graph; @@ -187,7 +190,9 @@ AVFilterContext *avfilter_graph_alloc_filter(AVFilterGraph *graph, graph->filters[graph->nb_filters++] = s; #if FF_API_FOO_COUNT +FF_DISABLE_DEPRECATION_WARNINGS graph->filter_count = graph->nb_filters; +FF_ENABLE_DEPRECATION_WARNINGS #endif s->graph = graph; diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c index 9ec5995236..30fb429c64 100644 --- a/libavfilter/buffersink.c +++ b/libavfilter/buffersink.c @@ -27,6 +27,7 @@ #include "libavutil/avassert.h" #include "libavutil/channel_layout.h" #include "libavutil/common.h" +#include "libavutil/internal.h" #include "libavutil/mathematics.h" #include "audio.h" @@ -137,6 +138,7 @@ int attribute_align_arg av_buffersink_get_samples(AVFilterContext *ctx, } #if FF_API_AVFILTERBUFFER +FF_DISABLE_DEPRECATION_WARNINGS static void compat_free_buffer(AVFilterBuffer *buf) { AVFrame *frame = buf->priv; @@ -206,6 +208,7 @@ int attribute_align_arg av_buffersink_read_samples(AVFilterContext *ctx, AVFilte { return compat_read(ctx, buf, nb_samples); } +FF_ENABLE_DEPRECATION_WARNINGS #endif static const AVFilterPad avfilter_vsink_buffer_inputs[] = { diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index f11f835c2c..423fb1fd87 100644 --- a/libavfilter/buffersrc.c +++ b/libavfilter/buffersrc.c @@ -30,6 +30,7 @@ #include "libavutil/fifo.h" #include "libavutil/frame.h" #include "libavutil/imgutils.h" +#include "libavutil/internal.h" #include "libavutil/opt.h" #include "libavutil/samplefmt.h" #include "audio.h" @@ -133,6 +134,7 @@ int attribute_align_arg av_buffersrc_add_frame(AVFilterContext *ctx, } #if FF_API_AVFILTERBUFFER +FF_DISABLE_DEPRECATION_WARNINGS static void compat_free_buffer(void *opaque, uint8_t *data) { AVFilterBufferRef *buf = opaque; @@ -235,6 +237,7 @@ fail: return ret; } +FF_ENABLE_DEPRECATION_WARNINGS #endif static av_cold int init_video(AVFilterContext *ctx) diff --git a/libavfilter/internal.h b/libavfilter/internal.h index 40b33afd08..12655bc3e6 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 } |