[FFmpeg-devel] [PATCH 083/218] avfilter/vsrc_cellauto: Store format in filter, remove query function
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Thu Sep 30 16:40:24 EEST 2021
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavfilter/vsrc_cellauto.c | 8 +-------
1 file changed, 1 insertion(+), 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),
};
--
2.30.2
More information about the ffmpeg-devel
mailing list