summaryrefslogtreecommitdiff
path: root/libavfilter/vf_libopencv.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2016-01-21 23:17:47 +0100
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2016-01-25 23:49:22 +0100
commit38622007c4bdfbdc9e688bf5bb1cdcab0f045e67 (patch)
treefd93ae2f9675b8e981f19c1f750f5b67cc0c3c6e /libavfilter/vf_libopencv.c
parent73e4565dff92d372e53a2073b65a3c88d0ac8baa (diff)
downloadffmpeg-38622007c4bdfbdc9e688bf5bb1cdcab0f045e67.tar.gz
vf_libopencv: add support for opencv 3
It dropped the old headers, but the replacements are already available with opencv 2. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'libavfilter/vf_libopencv.c')
-rw-r--r--libavfilter/vf_libopencv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c
index be27552995..f8ae9d5a6d 100644
--- a/libavfilter/vf_libopencv.c
+++ b/libavfilter/vf_libopencv.c
@@ -23,8 +23,14 @@
* libopencv wrapper functions
*/
+#include "config.h"
+#if HAVE_OPENCV2_CORE_CORE_C_H
+#include <opencv2/core/core_c.h>
+#include <opencv2/imgproc/imgproc_c.h>
+#else
#include <opencv/cv.h>
#include <opencv/cxcore.h>
+#endif
#include "libavutil/avstring.h"
#include "libavutil/common.h"
#include "libavutil/file.h"