Make avcodec_thread_init() set the thread count, even in the case when
threads support is not enabled. This should avoid the need for thread_count explicit setting in applications. Originally committed as revision 18670 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
		
							parent
							
								
									8e86dd1241
								
							
						
					
					
						commit
						2e418f5ed8
					
				@ -985,6 +985,7 @@ int av_get_bits_per_sample_format(enum SampleFormat sample_fmt) {
 | 
			
		||||
 | 
			
		||||
#if !HAVE_THREADS
 | 
			
		||||
int avcodec_thread_init(AVCodecContext *s, int thread_count){
 | 
			
		||||
    s->thread_count = thread_count;
 | 
			
		||||
    return -1;
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user