count > thread_count for execute()
Originally committed as revision 2842 to svn://svn.ffmpeg.org/ffmpeg/trunk
w32threads by (Gildas Bazin <gbazin at altern dot org>)
Originally committed as revision 2803 to svn://svn.ffmpeg.org/ffmpeg/trunk
multithreaded/SMP motion estimationmultithreaded/SMP encoding for MPEG1/MPEG2/MPEG4/H263all pthread specific code is in pthread.cto try it, run configure --enable-pthreads and ffmpeg ... -threads <num>the internal thread API is a simple AVCodecContext.execute() callback which executes a given function pointer with different arguments and returns after finishing all, that way no mutexes or other thread-mess is needed outside pthread.c...