From ee5bb31f9953d356c5caa08bd16451d017780759 Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Wed, 9 Feb 2011 20:15:25 +0000 Subject: [PATCH] Fix build with threading disabled The avcodec_thread_free() compatibility wrapper calls ff_thread_free(), which is not defined when threading is disabled. Make this call conditional. Signed-off-by: Mans Rullgard (cherry picked from commit 9a77a92c2b6855781d2a4cfab14c67ae4025760c) --- libavcodec/utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 404bf47215..8e5cfd5a82 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1339,7 +1339,9 @@ int avcodec_thread_init(AVCodecContext *s, int thread_count) void avcodec_thread_free(AVCodecContext *s) { +#if HAVE_THREADS return ff_thread_free(s); +#endif } #endif