diff options
Diffstat (limited to 'libavfilter/formats.c')
-rw-r--r-- | libavfilter/formats.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/formats.c b/libavfilter/formats.c index f60a4e6966..5e65c2968d 100644 --- a/libavfilter/formats.c +++ b/libavfilter/formats.c @@ -107,7 +107,8 @@ AVFilterFormats *avfilter_all_formats(enum AVMediaType type) { AVFilterFormats *ret = NULL; int fmt; - int num_formats = type == AVMEDIA_TYPE_VIDEO ? PIX_FMT_NB : 0; + int num_formats = type == AVMEDIA_TYPE_VIDEO ? PIX_FMT_NB : + type == AVMEDIA_TYPE_AUDIO ? SAMPLE_FMT_NB : 0; for (fmt = 0; fmt < num_formats; fmt++) if ((type != AVMEDIA_TYPE_VIDEO) || |