avfilter/vf_minterpolate: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
1cf7442516
commit
a92e4de8cb
@ -235,8 +235,6 @@ static const AVOption minterpolate_options[] = {
|
||||
|
||||
AVFILTER_DEFINE_CLASS(minterpolate);
|
||||
|
||||
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,
|
||||
@ -249,9 +247,6 @@ static int query_formats(AVFilterContext *ctx)
|
||||
AV_PIX_FMT_NONE
|
||||
};
|
||||
|
||||
return ff_set_common_formats_from_list(ctx, pix_fmts);
|
||||
}
|
||||
|
||||
static uint64_t get_sbad(AVMotionEstContext *me_ctx, int x, int y, int x_mv, int y_mv)
|
||||
{
|
||||
uint8_t *data_cur = me_ctx->data_cur;
|
||||
@ -1260,5 +1255,5 @@ const AVFilter ff_vf_minterpolate = {
|
||||
.uninit = uninit,
|
||||
FILTER_INPUTS(minterpolate_inputs),
|
||||
FILTER_OUTPUTS(minterpolate_outputs),
|
||||
FILTER_QUERY_FUNC(query_formats),
|
||||
FILTER_PIXFMTS_ARRAY(pix_fmts),
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user