Browse code

Revert "decklink: Header cleanup"

This reverts commit 61fb70c3866b19dccf473ad4e5ede79d117e8e1c.

Reported in #5183 to break the build. Further investigation needed.

Timothy Gu authored on 2016/01/25 05:42:39
Showing 7 changed files
... ...
@@ -26,7 +26,11 @@
26 26
 #include <DeckLinkAPIDispatch.cpp>
27 27
 #endif
28 28
 
29
+#include <pthread.h>
30
+#include <semaphore.h>
31
+
29 32
 extern "C" {
33
+#include "libavformat/avformat.h"
30 34
 #include "libavformat/internal.h"
31 35
 #include "libavutil/imgutils.h"
32 36
 }
... ...
@@ -19,15 +19,9 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
-#include <pthread.h>
23
-#include <semaphore.h>
24
-#include <DeckLinkAPI.h>
25
-
26
-extern "C" {
27
-#include "libavformat/avformat.h"
22
+#include <DeckLinkAPIVersion.h>
28 23
 
29 24
 #include "decklink_common_c.h"
30
-}
31 25
 
32 26
 class decklink_output_callback;
33 27
 class decklink_input_callback;
... ...
@@ -19,8 +19,6 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
-#include "libavutil/log.h"
23
-
24 22
 struct decklink_cctx {
25 23
     const AVClass *cclass;
26 24
 
... ...
@@ -21,7 +21,11 @@
21 21
 
22 22
 #include <DeckLinkAPI.h>
23 23
 
24
+#include <pthread.h>
25
+#include <semaphore.h>
26
+
24 27
 extern "C" {
28
+#include "libavformat/avformat.h"
25 29
 #include "libavformat/internal.h"
26 30
 #include "libavutil/imgutils.h"
27 31
 }
... ...
@@ -23,8 +23,6 @@
23 23
 extern "C" {
24 24
 #endif
25 25
 
26
-#include "libavformat/avformat.h"
27
-
28 26
 int ff_decklink_read_header(AVFormatContext *avctx);
29 27
 int ff_decklink_read_packet(AVFormatContext *avctx, AVPacket *pkt);
30 28
 int ff_decklink_read_close(AVFormatContext *avctx);
... ...
@@ -21,7 +21,11 @@
21 21
 
22 22
 #include <DeckLinkAPI.h>
23 23
 
24
+#include <pthread.h>
25
+#include <semaphore.h>
26
+
24 27
 extern "C" {
28
+#include "libavformat/avformat.h"
25 29
 #include "libavformat/internal.h"
26 30
 #include "libavutil/imgutils.h"
27 31
 }
... ...
@@ -23,8 +23,6 @@
23 23
 extern "C" {
24 24
 #endif
25 25
 
26
-#include "libavformat/avformat.h"
27
-
28 26
 int ff_decklink_write_header(AVFormatContext *avctx);
29 27
 int ff_decklink_write_packet(AVFormatContext *avctx, AVPacket *pkt);
30 28
 int ff_decklink_write_trailer(AVFormatContext *avctx);