avfilter/vf_photosensitivity: Use formats list instead of query function

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-09-27 21:14:51 +02:00
parent 5c3a243936
commit 3a33cdfa23
1 changed files with 1 additions and 11 deletions

View File

@ -70,16 +70,6 @@ static const AVOption photosensitivity_options[] = {
AVFILTER_DEFINE_CLASS(photosensitivity);
static int query_formats(AVFilterContext *ctx)
{
static const enum AVPixelFormat pixel_fmts[] = {
AV_PIX_FMT_RGB24,
AV_PIX_FMT_BGR24,
AV_PIX_FMT_NONE
};
return ff_set_common_formats_from_list(ctx, pixel_fmts);
}
typedef struct ThreadData_convert_frame
{
AVFrame *in;
@ -334,5 +324,5 @@ const AVFilter ff_vf_photosensitivity = {
.uninit = uninit,
FILTER_INPUTS(inputs),
FILTER_OUTPUTS(outputs),
FILTER_QUERY_FUNC(query_formats),
FILTER_PIXFMTS(AV_PIX_FMT_RGB24, AV_PIX_FMT_BGR24),
};