Browse Source

lavfi/il: filter out hwaccels formats from the list of supported formats

tags/n1.2
Stefano Sabatini 12 years ago
parent
commit
3acaea26e5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/vf_il.c

+ 1
- 1
libavfilter/vf_il.c View File

@@ -102,7 +102,7 @@ static int query_formats(AVFilterContext *ctx)

for (fmt = 0; fmt < AV_PIX_FMT_NB; fmt++) {
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(fmt);
if (!(desc->flags & PIX_FMT_PAL))
if (!(desc->flags & PIX_FMT_PAL) && !(desc->flags & PIX_FMT_HWACCEL))
ff_add_format(&formats, fmt);
}



Loading…
Cancel
Save