avformat/vf_vapoursynth: simplify xyz format check
This commit is contained in:
@@ -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);
|
pixfmt = av_pix_fmt_desc_get_id(pd);
|
||||||
|
|
||||||
if (pd->flags & (AV_PIX_FMT_FLAG_BAYER | AV_PIX_FMT_FLAG_ALPHA |
|
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;
|
continue;
|
||||||
|
|
||||||
if (pd->log2_chroma_w != vsf->subSamplingW ||
|
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)
|
if (av_pix_fmt_count_planes(pixfmt) != vsf->numPlanes)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (strncmp(pd->name, "xyz", 3) == 0)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (!is_native_endian(pixfmt))
|
if (!is_native_endian(pixfmt))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user