diff options
author | Zhao Zhili <zhilizhao@tencent.com> | 2019-12-06 15:06:17 +0800 |
---|---|---|
committer | Nicolas George <george@nsup.org> | 2019-12-23 17:02:55 +0100 |
commit | 61097535cdaa91fea0d62c567b3af02a940f6c2d (patch) | |
tree | 7715710a7950b8cf2253411bdbb50fe122f82ed2 /libavfilter | |
parent | 07ffdedf784e86b88074d8d3e08e55752869562a (diff) | |
download | ffmpeg-61097535cdaa91fea0d62c567b3af02a940f6c2d.tar.gz |
avfilter/buffersink: deprecate AVBufferSinkParams and AVABufferSinkParams
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/buffersink.c | 2 | ||||
-rw-r--r-- | libavfilter/buffersink.h | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c index 5f2ed0e4b3..76a46f6678 100644 --- a/libavfilter/buffersink.c +++ b/libavfilter/buffersink.c @@ -125,6 +125,7 @@ int attribute_align_arg av_buffersink_get_samples(AVFilterContext *ctx, return get_frame_internal(ctx, frame, 0, nb_samples); } +#if FF_API_NEXT AVBufferSinkParams *av_buffersink_params_alloc(void) { static const int pixel_fmts[] = { AV_PIX_FMT_NONE }; @@ -144,6 +145,7 @@ AVABufferSinkParams *av_abuffersink_params_alloc(void) return NULL; return params; } +#endif static av_cold int common_init(AVFilterContext *ctx) { diff --git a/libavfilter/buffersink.h b/libavfilter/buffersink.h index 3c846bb527..2ec821c685 100644 --- a/libavfilter/buffersink.h +++ b/libavfilter/buffersink.h @@ -59,6 +59,7 @@ int av_buffersink_get_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flag */ #define AV_BUFFERSINK_FLAG_NO_REQUEST 2 +#if FF_API_NEXT /** * Struct to use for initializing a buffersink context. */ @@ -71,6 +72,7 @@ typedef struct AVBufferSinkParams { * * Must be freed with av_free(). */ +attribute_deprecated AVBufferSinkParams *av_buffersink_params_alloc(void); /** @@ -89,7 +91,9 @@ typedef struct AVABufferSinkParams { * * Must be freed with av_free(). */ +attribute_deprecated AVABufferSinkParams *av_abuffersink_params_alloc(void); +#endif /** * Set the frame size for an audio buffer sink. |