]> git.sesse.net Git - ffmpeg/commit
linux: use number of CPUs as automatic thread count
authorJanne Grunau <janne-libav@jannau.net>
Wed, 21 Dec 2011 00:18:01 +0000 (01:18 +0100)
committerJanne Grunau <janne-libav@jannau.net>
Thu, 22 Dec 2011 20:50:07 +0000 (21:50 +0100)
commitea4d5f48373ab856e01a3cf05426db6e823e01d1
tree0821c1f58e1ff129e798e959f758ae3f11fff81d
parentf77f640b3035d357a6c6ffcea243c7ea0d8ebc67
linux: use number of CPUs as automatic thread count

Use sched_getaffinity to determine the number of logical CPUs.
Limits the number of threads to 16 since slice threading of H.264
seems to be buggy with more than 16 threads.
configure
libavcodec/pthread.c