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

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-02-09 23:15:25 +0300
committerMans Rullgard <mans@mansr.com>2011-02-09 23:52:28 +0300
commit9a77a92c2b6855781d2a4cfab14c67ae4025760c (patch)
tree5d0fa5eeb83e1d8cb7ddae960441b467661b16bd /libavcodec/utils.c
parentaef669cdfd984a737ad876b33ee1b160f87f5f9a (diff)
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 <mans@mansr.com>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 0816b39cda..03018b894f 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1297,7 +1297,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