mirror of
https://github.com/opencv/opencv.git
synced 2024-11-28 21:20:18 +08:00
minor fix for ffmpeg
This commit is contained in:
parent
750c56cc0e
commit
418bc6dbe9
@ -491,11 +491,11 @@ bool CvCapture_FFMPEG::open( const char* _filename )
|
||||
AVCodecContext *enc = &ic->streams[i]->codec;
|
||||
#endif
|
||||
|
||||
avcodec_thread_init(enc, count_threads);
|
||||
avcodec_thread_init(enc, count_threads);
|
||||
|
||||
//#ifndef AVMEDIA_TYPE_VIDEO
|
||||
// #define AVMEDIA_TYPE_VIDEO CODEC_TYPE_VIDEO
|
||||
//#endif
|
||||
#ifndef AVMEDIA_TYPE_VIDEO
|
||||
#define AVMEDIA_TYPE_VIDEO CODEC_TYPE_VIDEO
|
||||
#endif
|
||||
|
||||
if( AVMEDIA_TYPE_VIDEO == enc->codec_type && video_stream < 0) {
|
||||
AVCodec *codec = avcodec_find_decoder(enc->codec_id);
|
||||
|
Loading…
Reference in New Issue
Block a user