diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 22:58:48 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:28 +0200 |
commit | 2af3b6d8f76f09fdf308d61a256db4a4715b980a (patch) | |
tree | e15f42245c39cc55ac143c99c6e3161c7a82e69b /libavfilter | |
parent | 2bcbe923aa7a329bafca091e212199a3b7b9296c (diff) | |
download | ffmpeg-2af3b6d8f76f09fdf308d61a256db4a4715b980a.tar.gz |
avfilter/vf_dnn_classify: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_dnn_classify.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libavfilter/vf_dnn_classify.c b/libavfilter/vf_dnn_classify.c index ea929c2c19..fb6f2a3021 100644 --- a/libavfilter/vf_dnn_classify.c +++ b/libavfilter/vf_dnn_classify.c @@ -197,8 +197,6 @@ static av_cold int dnn_classify_init(AVFilterContext *context) return 0; } -static int dnn_classify_query_formats(AVFilterContext *context) -{ static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_RGB24, AV_PIX_FMT_BGR24, AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAYF32, @@ -207,8 +205,6 @@ static int dnn_classify_query_formats(AVFilterContext *context) AV_PIX_FMT_NV12, AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(context, pix_fmts); -} static int dnn_classify_flush_frame(AVFilterLink *outlink, int64_t pts, int64_t *out_pts) { @@ -323,7 +319,7 @@ const AVFilter ff_vf_dnn_classify = { .uninit = dnn_classify_uninit, FILTER_INPUTS(dnn_classify_inputs), FILTER_OUTPUTS(dnn_classify_outputs), - FILTER_QUERY_FUNC(dnn_classify_query_formats), + FILTER_PIXFMTS_ARRAY(pix_fmts), .priv_class = &dnn_classify_class, .activate = dnn_classify_activate, }; |