diff options
author | Martin Storsjö <martin@martin.st> | 2012-07-15 00:11:35 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-07-15 13:55:18 +0300 |
commit | 25f056e6d4229937cff8a8c3e974c56b9f94df3c (patch) | |
tree | 3cfd6db7dae39d15f30176186542cf4148857b30 /libavcodec/vp8.h | |
parent | c44091a9f70d9f9987f022dc9da0109879d2eb82 (diff) | |
download | ffmpeg-25f056e6d4229937cff8a8c3e974c56b9f94df3c.tar.gz |
vp8: Enclose pthread function calls in ifdefs
This fixes building with threads disabled.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavcodec/vp8.h')
-rw-r--r-- | libavcodec/vp8.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vp8.h b/libavcodec/vp8.h index 458a11abe0..6b3caa2d51 100644 --- a/libavcodec/vp8.h +++ b/libavcodec/vp8.h @@ -94,8 +94,10 @@ typedef struct { } VP8Macroblock; typedef struct { +#if HAVE_THREADS pthread_mutex_t lock; pthread_cond_t cond; +#endif int thread_nr; int thread_mb_pos; // (mb_y << 16) | (mb_x & 0xFFFF) int wait_mb_pos; // What the current thread is waiting on. |