mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-29 22:00:58 +02:00
avfilter/vf_fftfilt: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
af15b00e2e
commit
03c4795247
@ -385,8 +385,6 @@ static av_cold void uninit(AVFilterContext *ctx)
|
||||
}
|
||||
}
|
||||
|
||||
static int query_formats(AVFilterContext *ctx)
|
||||
{
|
||||
static const enum AVPixelFormat pixel_fmts_fftfilt[] = {
|
||||
AV_PIX_FMT_GRAY8,
|
||||
AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUVJ444P,
|
||||
@ -404,9 +402,6 @@ static int query_formats(AVFilterContext *ctx)
|
||||
AV_PIX_FMT_NONE
|
||||
};
|
||||
|
||||
return ff_set_common_formats_from_list(ctx, pixel_fmts_fftfilt);
|
||||
}
|
||||
|
||||
static const AVFilterPad fftfilt_inputs[] = {
|
||||
{
|
||||
.name = "default",
|
||||
@ -430,7 +425,7 @@ const AVFilter ff_vf_fftfilt = {
|
||||
.priv_class = &fftfilt_class,
|
||||
FILTER_INPUTS(fftfilt_inputs),
|
||||
FILTER_OUTPUTS(fftfilt_outputs),
|
||||
FILTER_QUERY_FUNC(query_formats),
|
||||
FILTER_PIXFMTS_ARRAY(pixel_fmts_fftfilt),
|
||||
.init = initialize,
|
||||
.uninit = uninit,
|
||||
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
|
||||
|
Loading…
x
Reference in New Issue
Block a user