]> git.sesse.net Git - ffmpeg/commitdiff
lavfi/sr: Change the backend type from flags to int
authorJun Zhao <barryjzhao@tencent.com>
Sat, 25 May 2019 11:59:42 +0000 (19:59 +0800)
committerJun Zhao <barryjzhao@tencent.com>
Tue, 28 May 2019 01:13:36 +0000 (09:13 +0800)
native and tensorflow is exclusive, so change the type from
flags to int.

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
libavfilter/vf_sr.c

index 9c96424479710d3dfe21e8951caef15f4209fc6e..86dc5515534ee86c7873606f844e349cc7ead1de 100644 (file)
@@ -50,7 +50,7 @@ typedef struct SRContext {
 #define OFFSET(x) offsetof(SRContext, x)
 #define FLAGS AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_VIDEO_PARAM
 static const AVOption sr_options[] = {
-    { "dnn_backend", "DNN backend used for model execution", OFFSET(backend_type), AV_OPT_TYPE_FLAGS, { .i64 = 0 }, 0, 1, FLAGS, "backend" },
+    { "dnn_backend", "DNN backend used for model execution", OFFSET(backend_type), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, FLAGS, "backend" },
     { "native", "native backend flag", 0, AV_OPT_TYPE_CONST, { .i64 = 0 }, 0, 0, FLAGS, "backend" },
 #if (CONFIG_LIBTENSORFLOW == 1)
     { "tensorflow", "tensorflow backend flag", 0, AV_OPT_TYPE_CONST, { .i64 = 1 }, 0, 0, FLAGS, "backend" },