diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 16:49:21 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:25 +0200 |
commit | 77b72a0759fd1b973a97e7cfe491aa97e6917792 (patch) | |
tree | 188b1879baa214d7942c35fa87a5efff0ee49967 | |
parent | 90daa728d89dad3258ab80e4267cdf86130d6382 (diff) | |
download | ffmpeg-77b72a0759fd1b973a97e7cfe491aa97e6917792.tar.gz |
avfilter/vsrc_cellauto: Store format in filter, remove query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavfilter/vsrc_cellauto.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libavfilter/vsrc_cellauto.c b/libavfilter/vsrc_cellauto.c index 8f6e02c82d..ceac86a344 100644 --- a/libavfilter/vsrc_cellauto.c +++ b/libavfilter/vsrc_cellauto.c @@ -308,12 +308,6 @@ static int request_frame(AVFilterLink *outlink) return ff_filter_frame(outlink, picref); } -static int query_formats(AVFilterContext *ctx) -{ - static const enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_MONOBLACK, AV_PIX_FMT_NONE }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - static const AVFilterPad cellauto_outputs[] = { { .name = "default", @@ -332,5 +326,5 @@ const AVFilter ff_vsrc_cellauto = { .uninit = uninit, .inputs = NULL, FILTER_OUTPUTS(cellauto_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_SINGLE_PIXFMT(AV_PIX_FMT_MONOBLACK), }; |