aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_entropy.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 22:04:18 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:58:28 +0200
commitab0834d51b28b1b614dc08405ca49532e0195dfa (patch)
treeebaf06348abb6b35389bd875344ff55a984986a0 /libavfilter/vf_entropy.c
parent346739707c1717514240f4d6cccc67fd2b307ac5 (diff)
downloadffmpeg-ab0834d51b28b1b614dc08405ca49532e0195dfa.tar.gz
avfilter/vf_entropy: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_entropy.c')
-rw-r--r--libavfilter/vf_entropy.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_entropy.c b/libavfilter/vf_entropy.c
index 2d29ad16d3..9855c1bf96 100644
--- a/libavfilter/vf_entropy.c
+++ b/libavfilter/vf_entropy.c
@@ -53,8 +53,6 @@ static const AVOption entropy_options[] = {
AVFILTER_DEFINE_CLASS(entropy);
-static int query_formats(AVFilterContext *ctx)
-{
static const enum AVPixelFormat pixfmts[] = {
AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV411P,
AV_PIX_FMT_YUV440P,
@@ -73,9 +71,6 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_NONE
};
- return ff_set_common_formats_from_list(ctx, pixfmts);
-}
-
static int config_input(AVFilterLink *inlink)
{
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format);
@@ -195,7 +190,7 @@ const AVFilter ff_vf_entropy = {
.uninit = uninit,
FILTER_INPUTS(inputs),
FILTER_OUTPUTS(outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_PIXFMTS_ARRAY(pixfmts),
.priv_class = &entropy_class,
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
};