lavfi: do not exclude hwaccel formats from ff_all_formats()

It should be possible to pass hwaccel frames through lavfi.
pull/118/merge
Anton Khirnov 10 years ago
parent cc28552100
commit ae25413daf
  1. 3
      libavfilter/formats.c

@ -222,8 +222,7 @@ AVFilterFormats *ff_all_formats(enum AVMediaType type)
if (type == AVMEDIA_TYPE_VIDEO) { if (type == AVMEDIA_TYPE_VIDEO) {
const AVPixFmtDescriptor *desc = NULL; const AVPixFmtDescriptor *desc = NULL;
while ((desc = av_pix_fmt_desc_next(desc))) { 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) { } else if (type == AVMEDIA_TYPE_AUDIO) {
enum AVSampleFormat fmt = 0; enum AVSampleFormat fmt = 0;

Loading…
Cancel
Save