[libav-commits] vp8: Include the thread headers before using the pthread types

Martin Storsjö git at libav.org
Sun Jul 15 04:19:53 CEST 2012


Module: libav
Branch: master
Commit: a794600c00c795b283e7864a2f55c2a3748d3560

Author:    Martin Storsjö <martin at martin.st>
Committer: Ronald S. Bultje <rsbultje at gmail.com>
Date:      Sun Jul 15 00:19:44 2012 +0300

vp8: Include the thread headers before using the pthread types

This was unnoticed on linux, since stdlib.h apparently includes
files declaring the pthread_mutex_t and pthread_cond_t types.

Signed-off-by: Ronald S. Bultje <rsbultje at gmail.com>

---

 libavcodec/vp8.c |    6 ------
 libavcodec/vp8.h |    5 +++++
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
index ee954fc..e39fc0b 100644
--- a/libavcodec/vp8.c
+++ b/libavcodec/vp8.c
@@ -31,12 +31,6 @@
 #include "rectangle.h"
 #include "thread.h"
 
-#if HAVE_PTHREADS
-#include <pthread.h>
-#elif HAVE_W32THREADS
-#include "w32pthreads.h"
-#endif
-
 #if ARCH_ARM
 #   include "arm/vp8.h"
 #endif
diff --git a/libavcodec/vp8.h b/libavcodec/vp8.h
index 1355da4..458a11a 100644
--- a/libavcodec/vp8.h
+++ b/libavcodec/vp8.h
@@ -30,6 +30,11 @@
 #include "vp56data.h"
 #include "vp8dsp.h"
 #include "h264pred.h"
+#if HAVE_PTHREADS
+#include <pthread.h>
+#elif HAVE_W32THREADS
+#include "w32pthreads.h"
+#endif
 
 #define VP8_MAX_QUANT 127
 



More information about the libav-commits mailing list