mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avfilter/vf_framerate: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
99ff7950b2
commit
cf8b7e8b71
@ -217,8 +217,6 @@ static av_cold void uninit(AVFilterContext *ctx)
|
||||
av_frame_free(&s->f1);
|
||||
}
|
||||
|
||||
static int query_formats(AVFilterContext *ctx)
|
||||
{
|
||||
static const enum AVPixelFormat pix_fmts[] = {
|
||||
AV_PIX_FMT_YUV410P,
|
||||
AV_PIX_FMT_YUV411P, AV_PIX_FMT_YUVJ411P,
|
||||
@ -232,9 +230,6 @@ static int query_formats(AVFilterContext *ctx)
|
||||
AV_PIX_FMT_NONE
|
||||
};
|
||||
|
||||
return ff_set_common_formats_from_list(ctx, pix_fmts);
|
||||
}
|
||||
|
||||
#define BLEND_FRAME_FUNC(nbits) \
|
||||
static void blend_frames##nbits##_c(BLEND_FUNC_PARAMS) \
|
||||
{ \
|
||||
@ -446,7 +441,7 @@ const AVFilter ff_vf_framerate = {
|
||||
.uninit = uninit,
|
||||
FILTER_INPUTS(framerate_inputs),
|
||||
FILTER_OUTPUTS(framerate_outputs),
|
||||
FILTER_QUERY_FUNC(query_formats),
|
||||
FILTER_PIXFMTS_ARRAY(pix_fmts),
|
||||
.flags = AVFILTER_FLAG_SLICE_THREADS,
|
||||
.activate = activate,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user