Commit cdf6a944 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'a7d070ac'

* commit 'a7d070ac':
  vf_fieldorder: avoid using AV_PIX_FMT_NB
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents de5ec088 a7d070ac
......@@ -47,9 +47,10 @@ static int query_formats(AVFilterContext *ctx)
/** accept any input pixel format that is not hardware accelerated, not
* a bitstream format, and does not have vertically sub-sampled chroma */
if (ctx->inputs[0]) {
const AVPixFmtDescriptor *desc = NULL;
formats = NULL;
for (pix_fmt = 0; pix_fmt < AV_PIX_FMT_NB; pix_fmt++) {
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt);
while ((desc = av_pix_fmt_desc_next(desc))) {
pix_fmt = av_pix_fmt_desc_get_id(desc);
if (!(desc->flags & AV_PIX_FMT_FLAG_HWACCEL ||
desc->flags & AV_PIX_FMT_FLAG_PAL ||
desc->flags & AV_PIX_FMT_FLAG_BITSTREAM) &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment