From c55a37ad7c17c9b32c6e44cca1ca3e6baa72a3cd Mon Sep 17 00:00:00 2001 From: Andrey Morozov Date: Sat, 30 Jul 2011 10:26:37 +0000 Subject: [PATCH] fixed build with ffmpeg 0.5.X --- modules/highgui/src/cap_ffmpeg_impl.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/highgui/src/cap_ffmpeg_impl.hpp b/modules/highgui/src/cap_ffmpeg_impl.hpp index 192ccc72a..e9b0d3064 100644 --- a/modules/highgui/src/cap_ffmpeg_impl.hpp +++ b/modules/highgui/src/cap_ffmpeg_impl.hpp @@ -495,6 +495,10 @@ bool CvCapture_FFMPEG::open( const char* _filename ) #if AVMEDIA_TYPE_VIDEO #define AVMEDIA_TYPE_VIDEO CODEC_TYPE_VIDEO + #else + #ifndef AVMEDIA_TYPE_VIDEO + #define AVMEDIA_TYPE_VIDEO CODEC_TYPE_VIDEO + #endif #endif if( AVMEDIA_TYPE_VIDEO == enc->codec_type && video_stream < 0) {