[FFmpeg-devel] [PATCH 080/218] avfilter/vsrc_mptestsrc: Store format in filter, remove query function
Andreas Rheinhardt
andreas.rheinhardt at outlook.com
Thu Sep 30 16:40:21 EEST 2021
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
libavfilter/vsrc_mptestsrc.c | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/libavfilter/vsrc_mptestsrc.c b/libavfilter/vsrc_mptestsrc.c
index 329af1fe21..f1bb777efa 100644
--- a/libavfilter/vsrc_mptestsrc.c
+++ b/libavfilter/vsrc_mptestsrc.c
@@ -290,15 +290,6 @@ static int config_props(AVFilterLink *outlink)
return 0;
}
-static int query_formats(AVFilterContext *ctx)
-{
- static const enum AVPixelFormat pix_fmts[] = {
- AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE
- };
-
- return ff_set_common_formats_from_list(ctx, pix_fmts);
-}
-
static int request_frame(AVFilterLink *outlink)
{
MPTestContext *test = outlink->src->priv;
@@ -361,5 +352,5 @@ const AVFilter ff_vsrc_mptestsrc = {
.init = init,
.inputs = NULL,
FILTER_OUTPUTS(mptestsrc_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_SINGLE_PIXFMT(AV_PIX_FMT_YUV420P),
};
--
2.30.2
More information about the ffmpeg-devel
mailing list