You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avfilter/vf_pp: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -75,8 +75,6 @@ static int pp_process_command(AVFilterContext *ctx, const char *cmd, const char
|
||||
return AVERROR(ENOSYS);
|
||||
}
|
||||
|
||||
static int pp_query_formats(AVFilterContext *ctx)
|
||||
{
|
||||
static const enum AVPixelFormat pix_fmts[] = {
|
||||
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUVJ420P,
|
||||
AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUVJ422P,
|
||||
@@ -88,9 +86,6 @@ static int pp_query_formats(AVFilterContext *ctx)
|
||||
AV_PIX_FMT_NONE
|
||||
};
|
||||
|
||||
return ff_set_common_formats_from_list(ctx, pix_fmts);
|
||||
}
|
||||
|
||||
static int pp_config_props(AVFilterLink *inlink)
|
||||
{
|
||||
int flags = PP_CPU_CAPS_AUTO;
|
||||
@@ -194,7 +189,7 @@ const AVFilter ff_vf_pp = {
|
||||
.uninit = pp_uninit,
|
||||
FILTER_INPUTS(pp_inputs),
|
||||
FILTER_OUTPUTS(pp_outputs),
|
||||
FILTER_QUERY_FUNC(pp_query_formats),
|
||||
FILTER_PIXFMTS_ARRAY(pix_fmts),
|
||||
.process_command = pp_process_command,
|
||||
.priv_class = &pp_class,
|
||||
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
|
||||
|
Reference in New Issue
Block a user