提交 196ac49f 编写于 作者: A Andrey Morozov

fixed of the ticket #1442

上级 bb33f8dd
......@@ -464,6 +464,7 @@ void CvCapture_FFMPEG::close()
}
init();
}
......@@ -491,7 +492,7 @@ bool CvCapture_FFMPEG::reopen()
AVCodecContext *enc = &ic->streams[video_stream]->codec;
#endif
avcodec_thread_init(enc, get_number_of_cpus());
avcodec_thread_init(enc, std::min(get_number_of_cpus(), 16));
AVCodec *codec = avcodec_find_decoder(enc->codec_id);
avcodec_open(enc, codec);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册