aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2023-10-26 13:55:17 +0200
committerNiklas Haas <git@haasn.dev>2023-10-31 15:46:38 +0100
commit6aff17a4511189a6765d7874a581d57dede26f01 (patch)
treedd2fe231844078f2177033e5937f242cacaa368b
parent93f07d98d98481c08215ce005b3b5428ee5b6525 (diff)
downloadffmpeg-6aff17a4511189a6765d7874a581d57dede26f01.tar.gz
avformat/vf_vapoursynth: simplify xyz format check
-rw-r--r--libavformat/vapoursynth.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/vapoursynth.c b/libavformat/vapoursynth.c
index 965d36dc2e..b79ecfcf1b 100644
--- a/libavformat/vapoursynth.c
+++ b/libavformat/vapoursynth.c
@@ -118,7 +118,8 @@ static av_cold enum AVPixelFormat match_pixfmt(const VSFormat *vsf, int c_order[
pixfmt = av_pix_fmt_desc_get_id(pd);
if (pd->flags & (AV_PIX_FMT_FLAG_BAYER | AV_PIX_FMT_FLAG_ALPHA |
- AV_PIX_FMT_FLAG_HWACCEL | AV_PIX_FMT_FLAG_BITSTREAM))
+ AV_PIX_FMT_FLAG_HWACCEL | AV_PIX_FMT_FLAG_BITSTREAM |
+ AV_PIX_FMT_FLAG_XYZ))
continue;
if (pd->log2_chroma_w != vsf->subSamplingW ||
@@ -141,9 +142,6 @@ static av_cold enum AVPixelFormat match_pixfmt(const VSFormat *vsf, int c_order[
if (av_pix_fmt_count_planes(pixfmt) != vsf->numPlanes)
continue;
- if (strncmp(pd->name, "xyz", 3) == 0)
- continue;
-
if (!is_native_endian(pixfmt))
continue;