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:53:02 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 19:58:27 +0300
commit99ff7950b29d694a8dacfe427dfab2b6eb2481f3 (patch)
tree2b1dd46a678a8895cd23b1188329c88a890e5694 /libavfilter/vf_freezedetect.c
parentfa816dc0a559b14ae81c7d5afe969d25cad7e570 (diff)
avfilter/vf_freezedetect: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_freezedetect.c')
-rw-r--r--libavfilter/vf_freezedetect.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_freezedetect.c b/libavfilter/vf_freezedetect.c
index 0852cc3472..f7c8ec0fc1 100644
--- a/libavfilter/vf_freezedetect.c
+++ b/libavfilter/vf_freezedetect.c
@@ -61,8 +61,6 @@ static const AVOption freezedetect_options[] = {
AVFILTER_DEFINE_CLASS(freezedetect);
-static int query_formats(AVFilterContext *ctx)
-{
static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUYV422, AV_PIX_FMT_RGB24,
AV_PIX_FMT_BGR24, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV444P,
@@ -90,9 +88,6 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_NONE
};
- return ff_set_common_formats_from_list(ctx, pix_fmts);
-}
-
static int config_input(AVFilterLink *inlink)
{
AVFilterContext *ctx = inlink->dst;
@@ -224,6 +219,6 @@ const AVFilter ff_vf_freezedetect = {
.uninit = uninit,
FILTER_INPUTS(freezedetect_inputs),
FILTER_OUTPUTS(freezedetect_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_PIXFMTS_ARRAY(pix_fmts),
.activate = activate,
};