You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
avfilter/buffersink: Postpone removal of av_[a]buffersink_params_alloc
They have been deprecated in 61097535cd,
yet this was less than two years ago. Removing them will therefore have
to wait.
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
@@ -148,7 +148,7 @@ int attribute_align_arg av_buffersink_get_samples(AVFilterContext *ctx,
|
|||||||
return get_frame_internal(ctx, frame, 0, nb_samples);
|
return get_frame_internal(ctx, frame, 0, nb_samples);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if FF_API_NEXT
|
#if FF_API_BUFFERSINK_ALLOC
|
||||||
AVBufferSinkParams *av_buffersink_params_alloc(void)
|
AVBufferSinkParams *av_buffersink_params_alloc(void)
|
||||||
{
|
{
|
||||||
static const int pixel_fmts[] = { AV_PIX_FMT_NONE };
|
static const int pixel_fmts[] = { AV_PIX_FMT_NONE };
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ int av_buffersink_get_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flag
|
|||||||
*/
|
*/
|
||||||
#define AV_BUFFERSINK_FLAG_NO_REQUEST 2
|
#define AV_BUFFERSINK_FLAG_NO_REQUEST 2
|
||||||
|
|
||||||
#if FF_API_NEXT
|
#if FF_API_BUFFERSINK_ALLOC
|
||||||
/**
|
/**
|
||||||
* Deprecated and unused struct to use for initializing a buffersink context.
|
* Deprecated and unused struct to use for initializing a buffersink context.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -68,5 +68,8 @@
|
|||||||
#ifndef FF_API_FILTER_LINK_SET_CLOSED
|
#ifndef FF_API_FILTER_LINK_SET_CLOSED
|
||||||
#define FF_API_FILTER_LINK_SET_CLOSED (LIBAVFILTER_VERSION_MAJOR < 8)
|
#define FF_API_FILTER_LINK_SET_CLOSED (LIBAVFILTER_VERSION_MAJOR < 8)
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef FF_API_BUFFERSINK_ALLOC
|
||||||
|
#define FF_API_BUFFERSINK_ALLOC (LIBAVFILTER_VERSION_MAJOR < 9)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* AVFILTER_VERSION_H */
|
#endif /* AVFILTER_VERSION_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user