[FFmpeg-soc] [soc]: r4726 - afilters/formats.c

kdub subversion at mplayerhq.hu
Thu Jul 16 16:36:49 CEST 2009


Author: kdub
Date: Thu Jul 16 16:36:49 2009
New Revision: 4726

Log:
add audio avfilterformat initialization function

Modified:
   afilters/formats.c

Modified: afilters/formats.c
==============================================================================
--- afilters/formats.c	Thu Jul 16 11:51:29 2009	(r4725)
+++ afilters/formats.c	Thu Jul 16 16:36:49 2009	(r4726)
@@ -87,6 +87,19 @@ AVFilterFormats *avfilter_make_format_li
     return ret;
 }
 
+AVFilterFormats *avfilter_all_sampleformats()
+{
+    AVFilterFormats *ret;
+    int i;
+    ret = av_mallocz(sizeof(AVFilterFormats));
+    ret->formats = av_malloc(sizeof(*ret->formats) * SAMPLE_FMT_NB);
+
+    for (i = 0; i < SAMPLE_FMT_NB; i++ )
+        ret->formats[i] = i;
+
+    return ret;
+}
+
 AVFilterFormats *avfilter_all_colorspaces(void)
 {
     AVFilterFormats *ret;


More information about the FFmpeg-soc mailing list