diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-03 10:08:30 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-03 10:08:30 +0200 |
commit | 20be5e0a0e7563671efe0f085c9f160ff09ba494 (patch) | |
tree | 4db1a4e402d97dae295a0c6607726f0f192c0556 /libavfilter | |
parent | 038c4f65ee6c72f9d1ee4d4e46c74073992fabc8 (diff) | |
parent | 7950e519bb094897f957b9a9531cc60ba46cbc91 (diff) | |
download | ffmpeg-20be5e0a0e7563671efe0f085c9f160ff09ba494.tar.gz |
Merge commit '7950e519bb094897f957b9a9531cc60ba46cbc91'
* commit '7950e519bb094897f957b9a9531cc60ba46cbc91':
Disable deprecation warnings for cases where a replacement is available
Conflicts:
libavcodec/avpacket.c
libavcodec/pthread.c
libavcodec/utils.c
libavdevice/v4l2.c
libavfilter/avfiltergraph.c
libavfilter/buffersrc.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
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 d09a3b53d9..7f69f86ea4 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -26,6 +26,7 @@ #include "libavutil/common.h" #include "libavutil/eval.h" #include "libavutil/imgutils.h" +#include "libavutil/internal.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavutil/rational.h" @@ -623,8 +624,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 3bb5047583..52edb6b270 100644 --- a/libavfilter/avfiltergraph.c +++ b/libavfilter/avfiltergraph.c @@ -28,6 +28,7 @@ #include "libavutil/avstring.h" #include "libavutil/bprint.h" #include "libavutil/channel_layout.h" +#include "libavutil/internal.h" #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "libavcodec/avcodec.h" // avcodec_find_best_pix_fmt_of_2() @@ -136,7 +137,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_unused = graph->nb_filters; +FF_ENABLE_DEPRECATION_WARNINGS #endif filter->graph = graph; @@ -201,7 +204,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_unused = graph->nb_filters; +FF_ENABLE_DEPRECATION_WARNINGS #endif s->graph = graph; diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c index 9c81d4d29e..6dca209871 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 "libavutil/opt.h" @@ -263,6 +264,7 @@ void av_buffersink_set_frame_size(AVFilterContext *ctx, unsigned frame_size) } #if FF_API_AVFILTERBUFFER +FF_DISABLE_DEPRECATION_WARNINGS static void compat_free_buffer(AVFilterBuffer *buf) { AVFrame *frame = buf->priv; @@ -347,6 +349,7 @@ int attribute_align_arg av_buffersink_get_buffer_ref(AVFilterContext *ctx, return compat_read(ctx, bufref, 0, flags); } +FF_ENABLE_DEPRECATION_WARNINGS #endif AVRational av_buffersink_get_frame_rate(AVFilterContext *ctx) diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c index a9174b8c21..b64f7faacf 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" @@ -173,6 +174,7 @@ static int av_buffersrc_add_frame_internal(AVFilterContext *ctx, } #if FF_API_AVFILTERBUFFER +FF_DISABLE_DEPRECATION_WARNINGS static void compat_free_buffer(void *opaque, uint8_t *data) { AVFilterBufferRef *buf = opaque; @@ -283,6 +285,7 @@ fail: return ret; } +FF_ENABLE_DEPRECATION_WARNINGS int av_buffersrc_buffer(AVFilterContext *ctx, AVFilterBufferRef *buf) { diff --git a/libavfilter/internal.h b/libavfilter/internal.h index 8256b892f4..90b4bf4c21 100644 --- a/libavfilter/internal.h +++ b/libavfilter/internal.h @@ -24,6 +24,7 @@ * internal API functions */ +#include "libavutil/internal.h" #include "avfilter.h" #include "avfiltergraph.h" #include "formats.h" @@ -272,7 +273,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 } @@ -283,7 +286,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 } |