native and tensorflow is exclusive, so change the type from flags to int.
Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -50,7 +50,7 @@ typedef struct SRContext { · 49 unmodified lines | ||
| 50 | 50 | #define OFFSET(x) offsetof(SRContext, x) |
| 51 | 51 | #define FLAGS AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_VIDEO_PARAM |
| 52 | 52 | static const AVOption sr_options[] = { |
| 53 | − { "dnn_backend", "DNN backend used for model execution", OFFSET(backend_type), AV_OPT_TYPE_FLAGS, { .i64 = 0 }, 0, 1, FLAGS, "backend" }, | |
| 53 | + { "dnn_backend", "DNN backend used for model execution", OFFSET(backend_type), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, FLAGS, "backend" }, | |
| 54 | 54 | { "native", "native backend flag", 0, AV_OPT_TYPE_CONST, { .i64 = 0 }, 0, 0, FLAGS, "backend" }, |
| 55 | 55 | #if (CONFIG_LIBTENSORFLOW == 1) |
| 56 | 56 | { "tensorflow", "tensorflow backend flag", 0, AV_OPT_TYPE_CONST, { .i64 = 1 }, 0, 0, FLAGS, "backend" }, |