aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-23 15:33:07 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-25 14:36:22 +0100
commit8f507feecbe9e276695b10e85e1e8bf38cd2c3f8 (patch)
treee0d6c54f1872599c03d7d56be2302c450348c342 /libavfilter
parent48cbdaea157671d456750e00fde37c6d7595fad6 (diff)
downloadffmpeg-8f507feecbe9e276695b10e85e1e8bf38cd2c3f8.tar.gz
avfiltergraph: add AVOption table
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/avfiltergraph.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index cff0fa9f11..ca290235c5 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -25,6 +25,7 @@
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
+#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libavcodec/avcodec.h" // avcodec_find_best_pix_fmt_of_2()
#include "avfilter.h"
@@ -32,9 +33,18 @@
#include "formats.h"
#include "internal.h"
+#define OFFSET(x) offsetof(AVFilterGraph,x)
+
+static const AVOption options[]={
+{"scale_sws_opts" , "default scale filter options" , OFFSET(scale_sws_opts) , AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, 0 },
+{0}
+};
+
+
static const AVClass filtergraph_class = {
.class_name = "AVFilterGraph",
.item_name = av_default_item_name,
+ .option = options,
.version = LIBAVUTIL_VERSION_INT,
.category = AV_CLASS_CATEGORY_FILTER,
};