[FFmpeg-cvslog] r20301 - in trunk/libavfilter: avfilter.h formats.c

stefano subversion
Mon Oct 19 01:35:54 CEST 2009


Author: stefano
Date: Mon Oct 19 01:35:54 2009
New Revision: 20301

Log:
Remove avfilter_make_format_list(), it has been replaced by
avfilter_make_format_list2().

Modified:
   trunk/libavfilter/avfilter.h
   trunk/libavfilter/formats.c

Modified: trunk/libavfilter/avfilter.h
==============================================================================
--- trunk/libavfilter/avfilter.h	Mon Oct 19 01:27:23 2009	(r20300)
+++ trunk/libavfilter/avfilter.h	Mon Oct 19 01:35:54 2009	(r20301)
@@ -23,7 +23,7 @@
 #define AVFILTER_AVFILTER_H
 
 #define LIBAVFILTER_VERSION_MAJOR  1
-#define LIBAVFILTER_VERSION_MINOR  1
+#define LIBAVFILTER_VERSION_MINOR  2
 #define LIBAVFILTER_VERSION_MICRO  0
 
 #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
@@ -171,15 +171,6 @@ struct AVFilterFormats
 };
 
 /**
- * Helper function to create a list of supported formats.  This is intended
- * for use in AVFilter->query_formats().
- * @param len the number of formats supported
- * @param ... a list of the supported formats
- * @return    the format list, with no existing references
- */
-AVFilterFormats *avfilter_make_format_list(int len, ...);
-
-/**
  * Creates a list of supported formats. This is intended for use in
  * AVFilter->query_formats().
  * @param pix_fmt list of pixel formats, terminated by PIX_FMT_NONE

Modified: trunk/libavfilter/formats.c
==============================================================================
--- trunk/libavfilter/formats.c	Mon Oct 19 01:27:23 2009	(r20300)
+++ trunk/libavfilter/formats.c	Mon Oct 19 01:35:54 2009	(r20301)
@@ -69,24 +69,6 @@ AVFilterFormats *avfilter_merge_formats(
     return ret;
 }
 
-AVFilterFormats *avfilter_make_format_list(int len, ...)
-{
-    AVFilterFormats *ret;
-    int i;
-    va_list vl;
-
-    ret = av_mallocz(sizeof(AVFilterFormats));
-    ret->formats = av_malloc(sizeof(*ret->formats) * len);
-    ret->format_count = len;
-
-    va_start(vl, len);
-    for(i = 0; i < len; i ++)
-        ret->formats[i] = va_arg(vl, int);
-    va_end(vl);
-
-    return ret;
-}
-
 AVFilterFormats *avfilter_make_format_list2(enum PixelFormat *pix_fmt)
 {
     AVFilterFormats *formats;



More information about the ffmpeg-cvslog mailing list