X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fpthread.c;h=37ca73f9ff8ac5deb20deef494a73b824afe4d54;hb=9f18be42f0af47cd88148ce2b0bfac7d2c86c89b;hp=070b3bded50146e5e1564f4d779093a3e47fb540;hpb=f6728a3ea27ba9b36972497676301da5999d53ac;p=ffmpeg diff --git a/libavfilter/pthread.c b/libavfilter/pthread.c index 070b3bded50..37ca73f9ff8 100644 --- a/libavfilter/pthread.c +++ b/libavfilter/pthread.c @@ -27,19 +27,12 @@ #include "libavutil/common.h" #include "libavutil/cpu.h" #include "libavutil/mem.h" +#include "libavutil/thread.h" #include "avfilter.h" #include "internal.h" #include "thread.h" -#if HAVE_PTHREADS -#include -#elif HAVE_OS2THREADS -#include "compat/os2threads.h" -#elif HAVE_W32THREADS -#include "compat/w32pthreads.h" -#endif - typedef struct ThreadContext { AVFilterGraph *graph; @@ -47,7 +40,7 @@ typedef struct ThreadContext { pthread_t *workers; avfilter_action_func *func; - /* per-execute perameters */ + /* per-execute parameters */ AVFilterContext *ctx; void *arg; int *rets;