]> git.sesse.net Git - ffmpeg/commitdiff
lavfi: do not exclude hwaccel formats from ff_all_formats()
authorAnton Khirnov <anton@khirnov.net>
Mon, 20 Jul 2015 08:07:25 +0000 (10:07 +0200)
committerAnton Khirnov <anton@khirnov.net>
Mon, 28 Sep 2015 13:42:38 +0000 (15:42 +0200)
It should be possible to pass hwaccel frames through lavfi.

libavfilter/formats.c

index 4b6b3aa3b763c26975ce851508e767611eb1f819..7b5a93c325b6237d3cb0a89053a27801931f1325 100644 (file)
@@ -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;