diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 21:41:29 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:27 +0200 |
commit | 7b0c500b4c5985f40ff5330bc02fe454e2a63e8e (patch) | |
tree | 27f06a66506650cee1792d2f7a1cab7267d0cd1b /libavfilter/vf_libopencv.c | |
parent | 55e8c3598be79d4af93d135a895de70a04c88d6d (diff) | |
download | ffmpeg-7b0c500b4c5985f40ff5330bc02fe454e2a63e8e.tar.gz |
avfilter/vf_libopencv: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_libopencv.c')
-rw-r--r-- | libavfilter/vf_libopencv.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c index 2f45f70fd4..86407d18eb 100644 --- a/libavfilter/vf_libopencv.c +++ b/libavfilter/vf_libopencv.c @@ -64,14 +64,6 @@ static void fill_frame_from_iplimage(AVFrame *frame, const IplImage *img, enum A frame->data[0] = img->imageData; } -static int query_formats(AVFilterContext *ctx) -{ - static const enum AVPixelFormat pix_fmts[] = { - AV_PIX_FMT_BGR24, AV_PIX_FMT_BGRA, AV_PIX_FMT_GRAY8, AV_PIX_FMT_NONE - }; - return ff_set_common_formats_from_list(ctx, pix_fmts); -} - typedef struct OCVContext { const AVClass *class; char *name; @@ -431,5 +423,5 @@ const AVFilter ff_vf_ocv = { .uninit = uninit, FILTER_INPUTS(avfilter_vf_ocv_inputs), FILTER_OUTPUTS(avfilter_vf_ocv_outputs), - FILTER_QUERY_FUNC(query_formats), + FILTER_PIXFMTS(AV_PIX_FMT_BGR24, AV_PIX_FMT_BGRA, AV_PIX_FMT_GRAY8), }; |