mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avfilter/vf_mestimate: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
fd1378feb1
commit
15195d698b
@ -67,8 +67,6 @@ static const AVOption mestimate_options[] = {
|
||||
|
||||
AVFILTER_DEFINE_CLASS(mestimate);
|
||||
|
||||
static int query_formats(AVFilterContext *ctx)
|
||||
{
|
||||
static const enum AVPixelFormat pix_fmts[] = {
|
||||
AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV411P,
|
||||
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P,
|
||||
@ -81,9 +79,6 @@ static int query_formats(AVFilterContext *ctx)
|
||||
AV_PIX_FMT_NONE
|
||||
};
|
||||
|
||||
return ff_set_common_formats_from_list(ctx, pix_fmts);
|
||||
}
|
||||
|
||||
static int config_input(AVFilterLink *inlink)
|
||||
{
|
||||
MEContext *s = inlink->dst->priv;
|
||||
@ -370,5 +365,5 @@ const AVFilter ff_vf_mestimate = {
|
||||
.uninit = uninit,
|
||||
FILTER_INPUTS(mestimate_inputs),
|
||||
FILTER_OUTPUTS(mestimate_outputs),
|
||||
FILTER_QUERY_FUNC(query_formats),
|
||||
FILTER_PIXFMTS_ARRAY(pix_fmts),
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user