diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-12-29 12:19:38 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-12-29 12:19:38 +0000 |
| commit | f7813a5324be39d13ab536c245d15dfc602a7849 (patch) | |
| tree | fad99148b88823d34a5df2f0a25881a002eb291b /ffmpeg/libavcodec/frame_thread_encoder.c | |
| parent | b7a5a477b8ff4d4e3028b9dfb9a9df0a41463f92 (diff) | |
basic type mechanism working
Diffstat (limited to 'ffmpeg/libavcodec/frame_thread_encoder.c')
| -rw-r--r-- | ffmpeg/libavcodec/frame_thread_encoder.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ffmpeg/libavcodec/frame_thread_encoder.c b/ffmpeg/libavcodec/frame_thread_encoder.c index b11a54a..b9acefc 100644 --- a/ffmpeg/libavcodec/frame_thread_encoder.c +++ b/ffmpeg/libavcodec/frame_thread_encoder.c @@ -30,9 +30,9 @@ #if HAVE_PTHREADS #include <pthread.h> #elif HAVE_W32THREADS -#include "w32pthreads.h" +#include "compat/w32pthreads.h" #elif HAVE_OS2THREADS -#include "os2threads.h" +#include "compat/os2threads.h" #endif #define MAX_THREADS 64 @@ -126,7 +126,7 @@ int ff_frame_thread_encoder_init(AVCodecContext *avctx, AVDictionary *options){ return 0; if(!avctx->thread_count) { - avctx->thread_count = ff_get_logical_cpus(avctx); + avctx->thread_count = av_cpu_count(); avctx->thread_count = FFMIN(avctx->thread_count, MAX_THREADS); } |
