aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-29 12:07:02 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 18:58:29 +0200
commit3a25adb895e34a9af1503064508dd2592a060772 (patch)
tree7270a21fb8733be3b3fd9b5e4f2daa6cc9ed7b85
parent4c0adcd07eafa1b051946f6e50f98678efc5a5aa (diff)
downloadffmpeg-3a25adb895e34a9af1503064508dd2592a060772.tar.gz
avfilter/vf_removelogo: Store format in filter, remove query function
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavfilter/vf_removelogo.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libavfilter/vf_removelogo.c b/libavfilter/vf_removelogo.c
index 0bfec406c0..c323b5eff3 100644
--- a/libavfilter/vf_removelogo.c
+++ b/libavfilter/vf_removelogo.c
@@ -203,12 +203,6 @@ static void convert_mask_to_strength_mask(uint8_t *data, int linesize,
*max_mask_size = apply_mask_fudge_factor(current_pass + 1);
}
-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 load_mask(uint8_t **mask, int *w, int *h,
const char *filename, void *log_ctx)
{
@@ -576,7 +570,7 @@ const AVFilter ff_vf_removelogo = {
.uninit = uninit,
FILTER_INPUTS(removelogo_inputs),
FILTER_OUTPUTS(removelogo_outputs),
- FILTER_QUERY_FUNC(query_formats),
+ FILTER_SINGLE_PIXFMT(AV_PIX_FMT_YUV420P),
.priv_class = &removelogo_class,
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC,
};