Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 22:42:06 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 19:58:27 +0300
commit833ed286f2eda171f341c16c767318dbe8b3e4f6 (patch)
tree9235150bf52c843ed08b499a7b23634ad9a9346e
parent7b0c500b4c5985f40ff5330bc02fe454e2a63e8e (diff)
avfilter/vf_lenscorrection: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavfilter/vf_lenscorrection.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libavfilter/vf_lenscorrection.c b/libavfilter/vf_lenscorrection.c
index fc13ffd4c2..f1238b8262 100644
--- a/libavfilter/vf_lenscorrection.c
+++ b/libavfilter/vf_lenscorrection.c
@@ -175,8 +175,6 @@ static int filter##name##_slice_bilinear(AVFilterContext *ctx, void *arg, \
BILINEAR(uint8_t, 8)
BILINEAR(uint16_t, 16)
-static int query_formats(AVFilterContext *ctx)
-{
static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY9,
AV_PIX_FMT_GRAY10, AV_PIX_FMT_GRAY12, AV_PIX_FMT_GRAY14,
@@ -203,8 +201,6 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_GBRAP, AV_PIX_FMT_GBRAP10, AV_PIX_FMT_GBRAP12, AV_PIX_FMT_GBRAP16,
AV_PIX_FMT_NONE
};
- return ff_set_common_formats_from_list(ctx, pix_fmts);
-}
static av_cold void uninit(AVFilterContext *ctx)
{
@@ -359,7 +355,7 @@ const AVFilter ff_vf_lenscorrection = {
.priv_size = sizeof(LenscorrectionCtx),
FILTER_INPUTS(lenscorrection_inputs),
FILTER_OUTPUTS(lenscorrection_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_PIXFMTS_ARRAY(pix_fmts),
.priv_class = &lenscorrection_class,
.uninit = uninit,
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC | AVFILTER_FLAG_SLICE_THREADS,