diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-08-17 01:34:58 +0300 |
---|---|---|
committer | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-08-31 00:24:22 +0300 |
commit | e6c20e214efd21cac56309c1548cf5dbdf1edf38 (patch) | |
tree | 061bd9b747049416c44e5d0c3192872b6a9f2504 /libavfilter/buffersink.c | |
parent | 0169c4dc818bd88e9c203afb51de2afda49c657c (diff) |
avfilter: add missing FF_API_AVFILTERBUFFER guards
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'libavfilter/buffersink.c')
-rw-r--r-- | libavfilter/buffersink.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c index 36b9e42728..8d2e7d73d5 100644 --- a/libavfilter/buffersink.c +++ b/libavfilter/buffersink.c @@ -363,6 +363,8 @@ AVRational av_buffersink_get_frame_rate(AVFilterContext *ctx) return ctx->inputs[0]->frame_rate; } +#if FF_API_AVFILTERBUFFER +FF_DISABLE_DEPRECATION_WARNINGS int attribute_align_arg av_buffersink_poll_frame(AVFilterContext *ctx) { BufferSinkContext *buf = ctx->priv; @@ -375,6 +377,8 @@ int attribute_align_arg av_buffersink_poll_frame(AVFilterContext *ctx) return av_fifo_size(buf->fifo)/FIFO_INIT_ELEMENT_SIZE + ff_poll_frame(inlink); } +FF_ENABLE_DEPRECATION_WARNINGS +#endif static av_cold int vsink_init(AVFilterContext *ctx, void *opaque) { |