X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=doc%2Fwriting_filters.txt;h=2e25cbed71bc91e0deb483b9f5a9e7c62c81ff29;hb=8c55c8258331377ffcc6fe74e0d80b3ab0966d11;hp=5cd4ecd6a4b01b1fced38d8c24e5eb8c0087b4f0;hpb=374f818bfbc5f7ad3a88f6a17770abb14abec4d1;p=ffmpeg diff --git a/doc/writing_filters.txt b/doc/writing_filters.txt index 5cd4ecd6a4b..2e25cbed71b 100644 --- a/doc/writing_filters.txt +++ b/doc/writing_filters.txt @@ -31,10 +31,8 @@ If everything went right, you should get a foobar.png with Lena edge-detected. That's it, your new playground is ready. Some little details about what's going on: -libavfilter/allfilters.c:avfilter_register_all() is called at runtime to create -a list of the available filters, but it's important to know that this file is -also parsed by the configure script, which in turn will define variables for -the build system and the C: +libavfilter/allfilters.c:this file is parsed by the configure script, which in turn +will define variables for the build system and the C: --- after running configure --- @@ -391,7 +389,7 @@ distributor with something like this: td.in = in; td.out = out; - ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(outlink->h, ctx->graph->nb_threads)); + ctx->internal->execute(ctx, filter_slice, &td, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx))); // ...