]> git.sesse.net Git - nageru/commitdiff
ffmpeg #includes need to be in extern blocks.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 2 Aug 2016 21:04:06 +0000 (23:04 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 2 Aug 2016 21:04:06 +0000 (23:04 +0200)
quicksync_encoder.cpp

index 55a0eabb5e3a5d191cbe90e8a889ac118ac10b6a..cc4020f69508ffe9d5706be7a88be8b7cc240da9 100644 (file)
@@ -1,4 +1,3 @@
-//#include "sysdeps.h"
 #include "quicksync_encoder.h"
 
 #include <movit/resource_pool.h>  // Must be above the Xlib includes.
@@ -9,10 +8,6 @@
 #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"