Module: ffmpeg
Branch: master
Commit: 9a77a92c2b6855781d2a4cfab14c67ae4025760c

Author: Mans Rullgard <[email protected]>
Date:   Wed Feb  9 20:15:25 2011 +0000

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 <[email protected]>

---

 libavcodec/utils.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 0816b39..03018b8 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

_______________________________________________
ffmpeg-commits mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-commits

Reply via email to