[FFmpeg-cvslog] lavfi: do not exclude hwaccel formats from ff_all_formats()
Anton Khirnov
git at videolan.org
Tue Sep 29 13:53:12 CEST 2015
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Jul 20 10:07:25 2015 +0200| [ae25413daf42a06f078ed81bb545ec23a8e0b482] | committer: Anton Khirnov
lavfi: do not exclude hwaccel formats from ff_all_formats()
It should be possible to pass hwaccel frames through lavfi.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ae25413daf42a06f078ed81bb545ec23a8e0b482
---
libavfilter/formats.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavfilter/formats.c b/libavfilter/formats.c
index 4b6b3aa..7b5a93c 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;
More information about the ffmpeg-cvslog
mailing list