@@ -56,16 +56,6 @@ static const AVOption derain_options[] = {
AVFILTER_DEFINE_CLASS(derain);
-static int query_formats(AVFilterContext *ctx)
-{
- const enum AVPixelFormat pixel_fmts[] = {
- AV_PIX_FMT_RGB24,
- AV_PIX_FMT_NONE
- };
-
- return ff_set_common_formats_from_list(ctx, pixel_fmts);
-}
-
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
{
DNNAsyncStatusType async_state = 0;
@@ -136,7 +126,7 @@ const AVFilter ff_vf_derain = {
.uninit = uninit,
FILTER_INPUTS(derain_inputs),
FILTER_OUTPUTS(derain_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_SINGLE_PIXFMT(AV_PIX_FMT_RGB24),
.priv_class = &derain_class,
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
};
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> --- libavfilter/vf_derain.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)