1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/vsrc_mptestsrc: Store format in filter, remove query function

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-09-27 16:46:51 +02:00
parent b36514b9d9
commit 84b04e610d

View File

@ -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),
};