#include <stdio.h>
#include <signal.h>
-#if HAVE_PTHREADS
-#include <pthread.h>
-#endif
-
#include "cmdutils.h"
#include "libavformat/avformat.h"
#include "libavutil/hwcontext.h"
#include "libavutil/pixfmt.h"
#include "libavutil/rational.h"
+#include "libavutil/thread.h"
#include "libavutil/threadmessage.h"
#include "libswresample/swresample.h"
int rate_emu;
int accurate_seek;
-#if HAVE_PTHREADS
+#if HAVE_THREADS
AVThreadMessageQueue *in_thread_queue;
pthread_t thread; /* thread reading from this file */
int non_blocking; /* reading packets from the thread should not block */
int keep_pix_fmt;
- AVCodecParserContext *parser;
- AVCodecContext *parser_avctx;
-
/* stats */
// combined size of all the packets written
uint64_t data_size;