[FFmpeg-devel] [PATCH 2/2] Fix build with threading disabled

Mans Rullgard mans
Wed Feb 9 21:15:39 CET 2011


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 at mansr.com>
---
 libavcodec/utils.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index eede431..2f0a3a1 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1287,7 +1287,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
-- 
1.7.4




More information about the ffmpeg-devel mailing list