History

avfilter: add ff_filter_get_nb_threads()

Paul B Mahol committed 10 years ago

Commit 5b190711 parent 44933902 files · +13 −0Browse files

Showing the changes to libavfilter/avfilter.c (1 of 2 files). Show all

Unified · Split

libavfilter/avfilter.c+7−0
@@ -783,6 +783,13 @@ void avfilter_free(AVFilterContext *filter) · 782 unmodified lines
783 av_free(filter);783 av_free(filter);
784}784}
785 785
786int ff_filter_get_nb_threads(AVFilterContext *ctx)
787{
788 if (ctx->nb_threads > 0)
789 return FFMIN(ctx->nb_threads, ctx->graph->nb_threads);
790 return ctx->graph->nb_threads;
791}
792
786static int process_options(AVFilterContext *ctx, AVDictionary **options,793static int process_options(AVFilterContext *ctx, AVDictionary **options,
787 const char *args)794 const char *args)
788{795{

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t