Browse Source

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@gmail.com>
tags/n1.0
Martin Storsjö Ronald S. Bultje 13 years ago
parent
commit
a794600c00
2 changed files with 5 additions and 6 deletions
  1. +0
    -6
      libavcodec/vp8.c
  2. +5
    -0
      libavcodec/vp8.h

+ 0
- 6
libavcodec/vp8.c View File

@@ -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


+ 5
- 0
libavcodec/vp8.h View File

@@ -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



Loading…
Cancel
Save