History

avformat/vf_vapoursynth: simplify xyz format check

Niklas Haas committed 3 years ago

Commit 6aff17a1 parent 93f07d91 file · +2 −4Browse files

Unified · Split

libavformat/vapoursynth.c+2−4
@@ -118,7 +118,8 @@ static av_cold enum AVPixelFormat match_pixfmt(const VSFormat *vsf, int c_order[ · 117 unmodified lines
118118 pixfmt = av_pix_fmt_desc_get_id(pd);
119119
120120 if (pd->flags & (AV_PIX_FMT_FLAG_BAYER | AV_PIX_FMT_FLAG_ALPHA |
121− AV_PIX_FMT_FLAG_HWACCEL | AV_PIX_FMT_FLAG_BITSTREAM))
121+ AV_PIX_FMT_FLAG_HWACCEL | AV_PIX_FMT_FLAG_BITSTREAM |
122+ AV_PIX_FMT_FLAG_XYZ))
122123 continue;
123124
124125 if (pd->log2_chroma_w != vsf->subSamplingW ||
@@ -141,9 +142,6 @@ static av_cold enum AVPixelFormat match_pixfmt(const VSFormat *vsf, int c_order[ · 16 unmodified lines
141142 if (av_pix_fmt_count_planes(pixfmt) != vsf->numPlanes)
142143 continue;
143144
144− if (strncmp(pd->name, "xyz", 3) == 0)
145− continue;
146−
147145 if (!is_native_endian(pixfmt))
148146 continue;
149147

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t