fixed build with ffmpeg 0.5.X
authorAndrey Morozov <no@email>
Sat, 30 Jul 2011 10:26:37 +0000 (10:26 +0000)
committerAndrey Morozov <no@email>
Sat, 30 Jul 2011 10:26:37 +0000 (10:26 +0000)
modules/highgui/src/cap_ffmpeg_impl.hpp

index 192ccc7..e9b0d30 100644 (file)
@@ -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) {