From e6c20e214efd21cac56309c1548cf5dbdf1edf38 Mon Sep 17 00:00:00 2001 From: Andreas Cadhalpun Date: Mon, 17 Aug 2015 00:34:58 +0200 Subject: avfilter: add missing FF_API_AVFILTERBUFFER guards Reviewed-by: Michael Niedermayer Signed-off-by: Andreas Cadhalpun --- libavfilter/avfilter.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libavfilter/avfilter.h') diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index 296f2d3c9a..584623f0b6 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -234,13 +234,13 @@ void avfilter_unref_buffer(AVFilterBufferRef *ref); */ attribute_deprecated void avfilter_unref_bufferp(AVFilterBufferRef **ref); -#endif /** * Get the number of channels of a buffer reference. */ attribute_deprecated int avfilter_ref_get_channels(AVFilterBufferRef *ref); +#endif #if FF_API_AVFILTERPAD_PUBLIC /** @@ -763,7 +763,9 @@ struct AVFilterLink { AVLINK_INIT ///< complete } init_state; +#if FF_API_AVFILTERBUFFER struct AVFilterPool *pool; +#endif /** * Graph the filter belongs to. @@ -819,6 +821,7 @@ struct AVFilterLink { */ int max_samples; +#if FF_API_AVFILTERBUFFER /** * The buffer reference currently being received across the link by the * destination filter. This is used internally by the filter system to @@ -827,6 +830,7 @@ struct AVFilterLink { * by the filters. */ AVFilterBufferRef *cur_buf_copy; +#endif /** * True if the link is closed. -- cgit v1.2.3