[FFmpeg-cvslog] r18670 - trunk/libavcodec/utils.c

stefano subversion
Fri Apr 24 01:14:26 CEST 2009


Author: stefano
Date: Fri Apr 24 01:14:26 2009
New Revision: 18670

Log:
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.

Modified:
   trunk/libavcodec/utils.c

Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c	Thu Apr 23 20:44:03 2009	(r18669)
+++ trunk/libavcodec/utils.c	Fri Apr 24 01:14:26 2009	(r18670)
@@ -985,6 +985,7 @@ int av_get_bits_per_sample_format(enum S
 
 #if !HAVE_THREADS
 int avcodec_thread_init(AVCodecContext *s, int thread_count){
+    s->thread_count = thread_count;
     return -1;
 }
 #endif



More information about the ffmpeg-cvslog mailing list