Showing the changes to libavfilter/avfiltergraph.c (1 of 2 files). Show all
Unified · Split
| @@ -50,8 +50,9 @@ static const AVOption filtergraph_options[] = { · 49 unmodified lines | ||
| 50 | 50 | { "thread_type", "Allowed thread types", OFFSET(thread_type), AV_OPT_TYPE_FLAGS, |
| 51 | 51 | { .i64 = AVFILTER_THREAD_SLICE }, 0, INT_MAX, F|V|A, "thread_type" }, |
| 52 | 52 | { "slice", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AVFILTER_THREAD_SLICE }, .flags = F|V|A, .unit = "thread_type" }, |
| 53 | − { "threads", "Maximum number of threads", OFFSET(nb_threads), | |
| 54 | − AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, F|V|A }, | |
| 53 | + { "threads", "Maximum number of threads", OFFSET(nb_threads), AV_OPT_TYPE_INT, | |
| 54 | + { .i64 = 0 }, 0, INT_MAX, F|V|A, "threads"}, | |
| 55 | + {"auto", "autodetect a suitable number of threads to use", 0, AV_OPT_TYPE_CONST, {.i64 = 0 }, .flags = F|V|A, .unit = "threads"}, | |
| 55 | 56 | {"scale_sws_opts" , "default scale filter options" , OFFSET(scale_sws_opts) , |
| 56 | 57 | AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, F|V }, |
| 57 | 58 | {"aresample_swr_opts" , "default aresample filter options" , OFFSET(aresample_swr_opts) , |