-//#include "sysdeps.h"
#include "quicksync_encoder.h"
#include <movit/resource_pool.h> // Must be above the Xlib includes.
#include <assert.h>
#include <epoxy/egl.h>
#include <fcntl.h>
-#include <libavcodec/avcodec.h>
-#include <libavformat/avio.h>
-#include <libavutil/error.h>
-#include <libdrm/drm_fourcc.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <thread>
#include <utility>
+extern "C" {
+
+#include <libavcodec/avcodec.h>
+#include <libavformat/avio.h>
+#include <libavutil/error.h>
+#include <libdrm/drm_fourcc.h>
+
+} // namespace
+
#include "audio_encoder.h"
#include "context.h"
#include "defs.h"