Commit c697f6a3 authored by Andrey Morozov's avatar Andrey Morozov

fixed build ffmpeg v0.8.1

parent a826a983
...@@ -493,12 +493,8 @@ bool CvCapture_FFMPEG::open( const char* _filename ) ...@@ -493,12 +493,8 @@ bool CvCapture_FFMPEG::open( const char* _filename )
avcodec_thread_init(enc, count_threads); avcodec_thread_init(enc, count_threads);
#if AVMEDIA_TYPE_VIDEO #if LIBAVFORMAT_BUILD < CALC_FFMPEG_VERSION(53, 4, 0)
#define AVMEDIA_TYPE_VIDEO CODEC_TYPE_VIDEO #define AVMEDIA_TYPE_VIDEO CODEC_TYPE_VIDEO
#else
#ifndef AVMEDIA_TYPE_VIDEO
#define AVMEDIA_TYPE_VIDEO CODEC_TYPE_VIDEO
#endif
#endif #endif
if( AVMEDIA_TYPE_VIDEO == enc->codec_type && video_stream < 0) { if( AVMEDIA_TYPE_VIDEO == enc->codec_type && video_stream < 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment