aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_ocr.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-27 21:18:23 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:58:26 +0200
commitbdfdb255f1e20b494e0dde467dfe6ea86f497144 (patch)
tree6f072e809bbe4115778c153fd5e09a8c87ff740a /libavfilter/vf_ocr.c
parent2232a9ffbf908cac0cd4f1043a89e9ca4f8c2291 (diff)
downloadffmpeg-bdfdb255f1e20b494e0dde467dfe6ea86f497144.tar.gz
avfilter/vf_ocr: Use formats list instead of query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_ocr.c')
-rw-r--r--libavfilter/vf_ocr.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavfilter/vf_ocr.c b/libavfilter/vf_ocr.c
index bc088f0299..8952bd5d46 100644
--- a/libavfilter/vf_ocr.c
+++ b/libavfilter/vf_ocr.c
@@ -73,8 +73,6 @@ static av_cold int init(AVFilterContext *ctx)
return 0;
}
-static int query_formats(AVFilterContext *ctx)
-{
static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_GRAY8,
AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUV411P,
@@ -87,9 +85,6 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_NONE
};
- return ff_set_common_formats_from_list(ctx, pix_fmts);
-}
-
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
{
AVDictionary **metadata = &in->metadata;
@@ -150,5 +145,5 @@ const AVFilter ff_vf_ocr = {
.uninit = uninit,
FILTER_INPUTS(ocr_inputs),
FILTER_OUTPUTS(ocr_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_PIXFMTS_ARRAY(pix_fmts),
};