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
118 pixfmt = av_pix_fmt_desc_get_id(pd);118 pixfmt = av_pix_fmt_desc_get_id(pd);
119 119
120 if (pd->flags & (AV_PIX_FMT_FLAG_BAYER | AV_PIX_FMT_FLAG_ALPHA |120 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))
122 continue;123 continue;
123 124
124 if (pd->log2_chroma_w != vsf->subSamplingW ||125 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
141 if (av_pix_fmt_count_planes(pixfmt) != vsf->numPlanes)142 if (av_pix_fmt_count_planes(pixfmt) != vsf->numPlanes)
142 continue;143 continue;
143 144
144 if (strncmp(pd->name, "xyz", 3) == 0)
145 continue;
146
147 if (!is_native_endian(pixfmt))145 if (!is_native_endian(pixfmt))
148 continue;146 continue;
149 147

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