Removed some dubious FFmpeg hack that no longer works.
authorRoman Donchenko <roman.donchenko@itseez.com>
Tue, 22 Oct 2013 12:43:40 +0000 (16:43 +0400)
committerRoman Donchenko <roman.donchenko@itseez.com>
Wed, 23 Oct 2013 10:56:37 +0000 (14:56 +0400)
modules/highgui/src/ffmpeg_codecs.hpp

index c1e116b..5bdd4cd 100644 (file)
@@ -60,14 +60,6 @@ extern "C" {
 #include <errno.h>
 #endif
 
-#ifdef WIN32
-#  ifdef __OPENCV_BUILD
-#    define AVUTIL_COMMON_H
-#    define MKBETAG(a,b,c,d) ((d) | ((c) << 8) | ((b) << 16) | ((unsigned)(a) << 24))
-#  endif
-#  include <libavformat/avformat.h>
-#else
-
 // if the header path is not specified explicitly, let's deduce it
 #if !defined HAVE_FFMPEG_AVCODEC_H && !defined HAVE_LIBAVCODEC_AVCODEC_H
 
@@ -81,14 +73,12 @@ extern "C" {
   #include <ffmpeg/avformat.h>
 #endif
 
-#if defined(HAVE_LIBAVFORMAT_AVFORMAT_H)
+#if defined(HAVE_LIBAVFORMAT_AVFORMAT_H) || defined(WIN32)
   #include <libavformat/avformat.h>
 #endif
 
 #endif
 
-#endif
-
 #ifdef __cplusplus
 }
 #endif