blob: bd9cdba6ffe36f87bfc79620c5e36a343e735132 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
libavutil/time.h in recent ffmpeg versions pollute the includes.
include libav* headers correcly.
Index: backlite-1.0.3/backlite.pro
===================================================================
--- backlite-1.0.3.orig/backlite.pro
+++ backlite-1.0.3/backlite.pro
@@ -383,39 +383,31 @@ for(a, INCLOC ) {
exists($$a/ffmpeg/libavcodec) {
message(found $$a/ffmpeg!)
INCLUDEPATH += $$a/ffmpeg
- INCLUDEPATH += $$a/ffmpeg/libavcodec
}
exists($$a/ffmpeg/libavformat) {
message(found $$a/ffmpeg!)
INCLUDEPATH += $$a/ffmpeg
- INCLUDEPATH += $$a/ffmpeg/libavformat
}
exists($$a/ffmpeg/libavutil) {
message(found $$a/ffmpeg!)
INCLUDEPATH += $$a/ffmpeg
- INCLUDEPATH += $$a/ffmpeg/libavutil
}
exists($$a/ffmpeg/libswscale) {
message(found $$a/ffmpeg!)
INCLUDEPATH += $$a/ffmpeg
- INCLUDEPATH += $$a/ffmpeg/libswscale
DEFINES += HAVE_SWSCALE
}
exists($$a/libavcodec) {
message(found $$a/libavcodec!)
- INCLUDEPATH += $$a/libavcodec
}
exists($$a/libavformat) {
message(found $$a/libavformat!)
- INCLUDEPATH += $$a/libavformat
}
exists($$a/libavutil) {
message(found $$a/libavutil!)
- INCLUDEPATH += $$a/libavutil
}
exists($$a/libswscale) {
message(found $$a/libswscale!)
- INCLUDEPATH += $$a/libswscale
DEFINES += HAVE_SWSCALE
}
}
Index: backlite-1.0.3/src/import/k9avidecode.cpp
===================================================================
--- backlite-1.0.3.orig/src/import/k9avidecode.cpp
+++ backlite-1.0.3/src/import/k9avidecode.cpp
@@ -10,14 +10,14 @@
//
//
#include "k9avidecode.h"
-#include <avcodec.h>
+#include <libavcodec/avcodec.h>
#include <qimage.h>
#include <dlfcn.h>
#include "k9common.h"
#ifdef HAVE_SWSCALE
-#include "swscale.h"
+#include <libswscale/swscale.h>
static int sws_flags = SWS_BICUBIC;
Index: backlite-1.0.3/src/import/k9avidecode.h
===================================================================
--- backlite-1.0.3.orig/src/import/k9avidecode.h
+++ backlite-1.0.3/src/import/k9avidecode.h
@@ -14,13 +14,13 @@
#include "k9common.h"
#include <qobject.h>
-#include <avformat.h>
-#include <avutil.h>
+#include <libavformat/avformat.h>
+#include <libavutil/avutil.h>
#include <qimage.h>
#include <cstdlib>
#include <QObject>
#ifdef HAVE_SWSCALE
-#include <swscale.h>
+#include <libswscale/swscale.h>
#endif
/**
@author Jean-Michel PETIT <k9copy@free.fr>
|