diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-10-17 02:29:40 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-10-17 02:29:40 +0200 |
commit | 266172aaf968bb71713490cdc64ae4929ad08b8b (patch) | |
tree | 0f67e7bc87198468c684554bd392abc026f3d79e /libavcodec/pthread.c | |
parent | f524b1184e94cf1ffff15f4f393172a73bb4b7f6 (diff) | |
parent | 27237d524e56210992b18486924894bb4f3fdbb8 (diff) | |
download | ffmpeg-streaming-266172aaf968bb71713490cdc64ae4929ad08b8b.zip ffmpeg-streaming-266172aaf968bb71713490cdc64ae4929ad08b8b.tar.gz |
Merge remote-tracking branch 'qatar/master'
* qatar/master:
w32threads: support for frame multithreading
avcodec: remove stray @deprecated comment
Conflicts:
libavcodec/utils.c
libavcodec/w32thread.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/pthread.c')
-rw-r--r-- | libavcodec/pthread.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/libavcodec/pthread.c b/libavcodec/pthread.c index f8a8ee2..b6ebea4 100644 --- a/libavcodec/pthread.c +++ b/libavcodec/pthread.c @@ -29,12 +29,17 @@ * @see doc/multithreading.txt */ -#include <pthread.h> - +#include "config.h" #include "avcodec.h" #include "internal.h" #include "thread.h" +#if HAVE_PTHREADS +#include <pthread.h> +#elif HAVE_W32THREADS +#include "w32pthreads.h" +#endif + typedef int (action_func)(AVCodecContext *c, void *arg); typedef int (action_func2)(AVCodecContext *c, void *arg, int jobnr, int threadnr); @@ -905,6 +910,10 @@ int ff_thread_init(AVCodecContext *avctx) return -1; } +#if HAVE_W32THREADS + w32thread_init(); +#endif + if (avctx->codec) { validate_thread_parameters(avctx); |