diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-09-27 17:22:25 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 18:58:25 +0200 |
commit | 688696790cc69b81d92f9c1a3e753399cdfb1508 (patch) | |
tree | bfbeb994c2065e223b2080977abedc2d7d8062e3 /libavfilter/vf_vidstabtransform.c | |
parent | e54b9bb8a20888f7b9bc00c1dbc6319e60bc7169 (diff) | |
download | ffmpeg-688696790cc69b81d92f9c1a3e753399cdfb1508.tar.gz |
avfilter/vf_vidstab(detect|transform): Deduplicate pixel formats
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_vidstabtransform.c')
-rw-r--r-- | libavfilter/vf_vidstabtransform.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/libavfilter/vf_vidstabtransform.c b/libavfilter/vf_vidstabtransform.c index 70fe552b59..338a5d4f8a 100644 --- a/libavfilter/vf_vidstabtransform.c +++ b/libavfilter/vf_vidstabtransform.c @@ -123,16 +123,7 @@ static av_cold void uninit(AVFilterContext *ctx) static int query_formats(AVFilterContext *ctx) { - // If you add something here also add it in vidstabutils.c - static const enum AVPixelFormat pix_fmts[] = { - AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV420P, - AV_PIX_FMT_YUV411P, AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUVA420P, - AV_PIX_FMT_YUV440P, AV_PIX_FMT_GRAY8, - AV_PIX_FMT_RGB24, AV_PIX_FMT_BGR24, AV_PIX_FMT_RGBA, - AV_PIX_FMT_NONE - }; - - return ff_set_common_formats_from_list(ctx, pix_fmts); + return ff_set_common_formats_from_list(ctx, ff_vidstab_pix_fmts); } |