Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-04-24 03:14:26 +0400
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-04-24 03:14:26 +0400
commit2e418f5ed8ed50ac971d0c3525f6fe1695caa7cb (patch)
tree49920cd46248161781b536d88499ab45bc41431c /libavcodec/utils.c
parent8e86dd1241b217a8d95dfd87abd93751cb3e5af5 (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
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c1
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