changeset 9545:59073f92f0e2 libavcodec

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.
author stefano
date Thu, 23 Apr 2009 23:14:26 +0000
parents e5afd314bd14
children 54ddf2b7d4bd
files utils.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Thu Apr 23 18:21:16 2009 +0000
+++ b/utils.c	Thu Apr 23 23:14:26 2009 +0000
@@ -985,6 +985,7 @@
 
 #if !HAVE_THREADS
 int avcodec_thread_init(AVCodecContext *s, int thread_count){
+    s->thread_count = thread_count;
     return -1;
 }
 #endif