diff utils.c @ 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 f522c8e05a29
children bc32976d6d9d
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