diff options
author | Anton Khirnov <anton@khirnov.net> | 2015-07-20 10:07:25 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-09-28 15:42:38 +0200 |
commit | ae25413daf42a06f078ed81bb545ec23a8e0b482 (patch) | |
tree | 8ba9d300dc831261acf9b2724c31f2c22c07adeb /libavfilter/formats.c | |
parent | cc285521000020ab237d183dc3a26f99fce3030f (diff) | |
download | ffmpeg-ae25413daf42a06f078ed81bb545ec23a8e0b482.tar.gz |
lavfi: do not exclude hwaccel formats from ff_all_formats()
It should be possible to pass hwaccel frames through lavfi.
Diffstat (limited to 'libavfilter/formats.c')
-rw-r--r-- | libavfilter/formats.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/formats.c b/libavfilter/formats.c index 4b6b3aa3b7..7b5a93c325 100644 --- a/libavfilter/formats.c +++ b/libavfilter/formats.c @@ -222,8 +222,7 @@ AVFilterFormats *ff_all_formats(enum AVMediaType type) if (type == AVMEDIA_TYPE_VIDEO) { const AVPixFmtDescriptor *desc = NULL; while ((desc = av_pix_fmt_desc_next(desc))) { - if (!(desc->flags & AV_PIX_FMT_FLAG_HWACCEL)) - ff_add_format(&ret, av_pix_fmt_desc_get_id(desc)); + ff_add_format(&ret, av_pix_fmt_desc_get_id(desc)); } } else if (type == AVMEDIA_TYPE_AUDIO) { enum AVSampleFormat fmt = 0; |