#include <stdint.h>
-#if HAVE_PTHREADS
-#include <pthread.h>
-#elif HAVE_W32THREADS
-#include "compat/w32pthreads.h"
-#elif HAVE_OS2THREADS
-#include "compat/os2threads.h"
-#endif
-
#include "avcodec.h"
#include "internal.h"
#include "pthread_internal.h"
#include "libavutil/log.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
+#include "libavutil/thread.h"
/**
* Context used by codec threads and stored in their AVCodecInternal thread_ctx.