aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 21:06:58 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:58:26 +0200
commite586e6dabd13cacc19a5fbe993b5361cc04bf7ee (patch)
tree9c81480e0985ba2f00c563e6716a037ff8b9cd25
parentd510f43b19cb0e42b72862f7a52e730c0798d92b (diff)
downloadffmpeg-e586e6dabd13cacc19a5fbe993b5361cc04bf7ee.tar.gz
avfilter/vf_readeia608: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavfilter/vf_readeia608.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libavfilter/vf_readeia608.c b/libavfilter/vf_readeia608.c
index 5412ff5ae7..2fe4a1c4e2 100644
--- a/libavfilter/vf_readeia608.c
+++ b/libavfilter/vf_readeia608.c
@@ -100,8 +100,6 @@ static const AVOption readeia608_options[] = {
AVFILTER_DEFINE_CLASS(readeia608);
-static int query_formats(AVFilterContext *ctx)
-{
static const enum AVPixelFormat pixel_fmts[] = {
AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY9,
AV_PIX_FMT_GRAY10, AV_PIX_FMT_GRAY12, AV_PIX_FMT_GRAY14,
@@ -125,8 +123,6 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_YUVA420P9, AV_PIX_FMT_YUVA420P10, AV_PIX_FMT_YUVA420P16,
AV_PIX_FMT_NONE
};
- return ff_set_common_formats_from_list(ctx, pixel_fmts);
-}
static int config_filter(AVFilterContext *ctx, int start, int end)
{
@@ -557,7 +553,7 @@ const AVFilter ff_vf_readeia608 = {
.priv_class = &readeia608_class,
FILTER_INPUTS(readeia608_inputs),
FILTER_OUTPUTS(readeia608_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_PIXFMTS_ARRAY(pixel_fmts),
.uninit = uninit,
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,
.process_command = process_command,