mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 11:10:21 +08:00
fixed build with ffmpeg 0.5.X
This commit is contained in:
parent
c0a0c881ee
commit
c55a37ad7c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user