summaryrefslogtreecommitdiff
path: root/libavfilter/formats.c
diff options
context:
space:
mode:
authorS.N. Hemanth Meenakshisundaram <smeenaks@ucsd.edu>2010-08-17 18:08:03 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-08-17 18:08:03 +0000
commitad2c950154bc142086d5f72b902013939c58bf72 (patch)
tree0bf1a981bf125f5045754134dcd19e9667447342 /libavfilter/formats.c
parenta8542e433eb109f701ff8e93656b2e441b133c49 (diff)
Implement libavfilter audio framework.
Patch by S.N. Hemanth Meenakshisundaram * smeenaks * ucsd * edu *. Originally committed as revision 24811 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/formats.c')
-rw-r--r--libavfilter/formats.c3
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) ||