mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avfilter/internal: Mark ff_filter_get_nb_threads() as av_pure
It does not modify anything; it only returns a value, so it fulfills the requirements for av_pure. The deeper rationale behind this change is that this function is called quite often inside arguments to FFMIN which may lead to two calls to it; declaring this function as av_pure allows the compiler to optimize the second call away. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
f9136d6026
commit
b76f9bcfd0
@ -363,7 +363,7 @@ static inline int ff_norm_qscale(int qscale, int type)
|
||||
* Get number of threads for current filter instance.
|
||||
* This number is always same or less than graph->nb_threads.
|
||||
*/
|
||||
int ff_filter_get_nb_threads(AVFilterContext *ctx);
|
||||
int ff_filter_get_nb_threads(AVFilterContext *ctx) av_pure;
|
||||
|
||||
/**
|
||||
* Generic processing of user supplied commands that are set
|
||||
|
Loading…
Reference in New Issue
Block a user