From 4ec2ad91b90f67d06c7d303d1ac51847238a66a7 Mon Sep 17 00:00:00 2001 From: Alexander Reshetnikov Date: Sat, 31 Mar 2012 15:27:48 +0000 Subject: [PATCH] Removed duplicated includes from ffmpeg wrappers --- modules/highgui/src/cap_ffmpeg_impl.hpp | 9 --------- modules/highgui/src/cap_ffmpeg_impl_v2.hpp | 9 --------- 2 files changed, 18 deletions(-) diff --git a/modules/highgui/src/cap_ffmpeg_impl.hpp b/modules/highgui/src/cap_ffmpeg_impl.hpp index 7d1be9cde..fa847ce3b 100644 --- a/modules/highgui/src/cap_ffmpeg_impl.hpp +++ b/modules/highgui/src/cap_ffmpeg_impl.hpp @@ -55,7 +55,6 @@ extern "C" { #ifdef WIN32 #define HAVE_FFMPEG_SWSCALE 1 - #include #include #include #else @@ -65,13 +64,11 @@ extern "C" { #if defined(HAVE_GENTOO_FFMPEG) #define HAVE_LIBAVCODEC_AVCODEC_H 1 - #define HAVE_LIBAVFORMAT_AVFORMAT_H 1 #if defined(HAVE_FFMPEG_SWSCALE) #define HAVE_LIBSWSCALE_SWSCALE_H 1 #endif #elif defined HAVE_FFMPEG #define HAVE_FFMPEG_AVCODEC_H 1 - #define HAVE_FFMPEG_AVFORMAT_H 1 #if defined(HAVE_FFMPEG_SWSCALE) #define HAVE_FFMPEG_SWSCALE_H 1 #endif @@ -82,16 +79,10 @@ extern "C" { #if defined(HAVE_FFMPEG_AVCODEC_H) #include #endif -#if defined(HAVE_FFMPEG_AVFORMAT_H) - #include -#endif #if defined(HAVE_FFMPEG_SWSCALE_H) #include #endif -#if defined(HAVE_LIBAVFORMAT_AVFORMAT_H) - #include -#endif #if defined(HAVE_LIBAVCODEC_AVCODEC_H) #include #endif diff --git a/modules/highgui/src/cap_ffmpeg_impl_v2.hpp b/modules/highgui/src/cap_ffmpeg_impl_v2.hpp index 82fd0b61e..327dc4c5b 100755 --- a/modules/highgui/src/cap_ffmpeg_impl_v2.hpp +++ b/modules/highgui/src/cap_ffmpeg_impl_v2.hpp @@ -56,7 +56,6 @@ extern "C" { #ifdef WIN32 #define HAVE_FFMPEG_SWSCALE 1 - #include #include #include #else @@ -66,13 +65,11 @@ extern "C" { #if defined(HAVE_GENTOO_FFMPEG) #define HAVE_LIBAVCODEC_AVCODEC_H 1 - #define HAVE_LIBAVFORMAT_AVFORMAT_H 1 #if defined(HAVE_FFMPEG_SWSCALE) #define HAVE_LIBSWSCALE_SWSCALE_H 1 #endif #elif defined HAVE_FFMPEG #define HAVE_FFMPEG_AVCODEC_H 1 - #define HAVE_FFMPEG_AVFORMAT_H 1 #if defined(HAVE_FFMPEG_SWSCALE) #define HAVE_FFMPEG_SWSCALE_H 1 #endif @@ -83,16 +80,10 @@ extern "C" { #if defined(HAVE_FFMPEG_AVCODEC_H) #include #endif -#if defined(HAVE_FFMPEG_AVFORMAT_H) - #include -#endif #if defined(HAVE_FFMPEG_SWSCALE_H) #include #endif -#if defined(HAVE_LIBAVFORMAT_AVFORMAT_H) - #include -#endif #if defined(HAVE_LIBAVCODEC_AVCODEC_H) #include #endif