Merge commit 'a7d070acb55c3ebbdd5e93e3366f32865732b8a3'
* commit 'a7d070acb55c3ebbdd5e93e3366f32865732b8a3': vf_fieldorder: avoid using AV_PIX_FMT_NB Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
cdf6a9441d
@ -47,9 +47,10 @@ static int query_formats(AVFilterContext *ctx)
|
|||||||
/** accept any input pixel format that is not hardware accelerated, not
|
/** accept any input pixel format that is not hardware accelerated, not
|
||||||
* a bitstream format, and does not have vertically sub-sampled chroma */
|
* a bitstream format, and does not have vertically sub-sampled chroma */
|
||||||
if (ctx->inputs[0]) {
|
if (ctx->inputs[0]) {
|
||||||
|
const AVPixFmtDescriptor *desc = NULL;
|
||||||
formats = NULL;
|
formats = NULL;
|
||||||
for (pix_fmt = 0; pix_fmt < AV_PIX_FMT_NB; pix_fmt++) {
|
while ((desc = av_pix_fmt_desc_next(desc))) {
|
||||||
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
|
pix_fmt = av_pix_fmt_desc_get_id(desc);
|
||||||
if (!(desc->flags & AV_PIX_FMT_FLAG_HWACCEL ||
|
if (!(desc->flags & AV_PIX_FMT_FLAG_HWACCEL ||
|
||||||
desc->flags & AV_PIX_FMT_FLAG_PAL ||
|
desc->flags & AV_PIX_FMT_FLAG_PAL ||
|
||||||
desc->flags & AV_PIX_FMT_FLAG_BITSTREAM) &&
|
desc->flags & AV_PIX_FMT_FLAG_BITSTREAM) &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user