From 3cbf2841f3cf9cc9b266b29a8bdbf93c8606e980 Mon Sep 17 00:00:00 2001 From: stefano 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. git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18670 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- libavcodec/utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index fe8bed7b2..141d97b14 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 -- 2.39.2