mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
lavfi/il: filter out hwaccels formats from the list of supported formats
This commit is contained in:
parent
6b171f046c
commit
3acaea26e5
@ -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…
Reference in New Issue
Block a user