# HG changeset patch # User stefano # Date 1240528466 0 # Node ID 59073f92f0e2ab0f1f4c82d4d850cbc0ca9d2525 # Parent e5afd314bd14871892b782077770473acb1ca059 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. diff -r e5afd314bd14 -r 59073f92f0e2 utils.c --- 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