From c93d4d8a7e35f5e53868a938f1a216792c391598 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 2 Aug 2016 23:04:06 +0200 Subject: [PATCH] ffmpeg #includes need to be in extern blocks. --- quicksync_encoder.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/quicksync_encoder.cpp b/quicksync_encoder.cpp index 55a0eab..cc4020f 100644 --- a/quicksync_encoder.cpp +++ b/quicksync_encoder.cpp @@ -1,4 +1,3 @@ -//#include "sysdeps.h" #include "quicksync_encoder.h" #include // Must be above the Xlib includes. @@ -9,10 +8,6 @@ #include #include #include -#include -#include -#include -#include #include #include #include @@ -35,6 +30,15 @@ #include #include +extern "C" { + +#include +#include +#include +#include + +} // namespace + #include "audio_encoder.h" #include "context.h" #include "defs.h" -- 2.39.2