From 2e418f5ed8ed50ac971d0c3525f6fe1695caa7cb Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Thu, 23 Apr 2009 23:14:26 +0000 Subject: [PATCH] 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 --- libavcodec/utils.c | 1 + 1 file changed, 1 insertion(+) 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