diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-04-24 03:14:26 +0400 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-04-24 03:14:26 +0400 |
commit | 2e418f5ed8ed50ac971d0c3525f6fe1695caa7cb (patch) | |
tree | 49920cd46248161781b536d88499ab45bc41431c | |
parent | 8e86dd1241b217a8d95dfd87abd93751cb3e5af5 (diff) |
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
-rw-r--r-- | libavcodec/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index fe8bed7b2b..141d97b149 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -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 |