summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-10-18 23:35:54 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-10-18 23:35:54 +0000
commite768cb7668037f580f864f821a0b4f73c8b03217 (patch)
tree376c60a265c2325d0e93b41acb8b4acc39681937 /libavfilter
parentc3a58c4efc2b0709b66518d003746dbae80c083b (diff)
Remove avfilter_make_format_list(), it has been replaced by
avfilter_make_format_list2(). Originally committed as revision 20301 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/avfilter.h11
-rw-r--r--libavfilter/formats.c18
2 files changed, 1 insertions, 28 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index 0694275f91..2aac3e0864 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -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
diff --git a/libavfilter/formats.c b/libavfilter/formats.c
index 3a44cfd530..b1763d9ac0 100644
--- a/libavfilter/formats.c
+++ b/libavfilter/formats.c
@@ -69,24 +69,6 @@ AVFilterFormats *avfilter_merge_formats(AVFilterFormats *a, AVFilterFormats *b)
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;