threads: limit the number of automatic threads to MAX_AUTO_THREADS
authorJanne Grunau <janne-libav@jannau.net>
Sun, 1 Jan 2012 16:35:16 +0000 (17:35 +0100)
committerJanne Grunau <janne-libav@jannau.net>
Sun, 1 Jan 2012 20:11:43 +0000 (21:11 +0100)
commitb12d21733975f9001eecb480fc28e5e4473b1327
tree273f7243cff7a1c150c4542a919422631d028212
parentda7c65f0ce2a9c5609cdecbca4336821a92a7aa8
threads: limit the number of automatic threads to MAX_AUTO_THREADS

The extra thread added in {frame_}*thread_init was not taken into
account. Explicitly sets thread_count to 1 if only one CPU core was
detected. Also fixes two typos in comments.
libavcodec/pthread.c