Skip to content

Commit 37ba1d6

Browse files
whizzzkidalalek
authored andcommitted
Merge pull request opencv#9599 from whizzzkid:master
Incorrect Naming (opencv#9599) * Resolved opencv#9544 * This is a better fix * This should be good.
1 parent 4196543 commit 37ba1d6

File tree

5 files changed

+25
-6
lines changed

5 files changed

+25
-6
lines changed

modules/cudacodec/src/cuvid_video_source.hpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@
4444
#ifndef __CUVID_VIDEO_SOURCE_HPP__
4545
#define __CUVID_VIDEO_SOURCE_HPP__
4646

47-
#include <nvcuvid.h>
48-
47+
#if CUDA_VERSION >= 9000
48+
#include <dynlink_nvcuvid.h>
49+
#else
50+
#include <nvcuvid.h>
51+
#endif
4952
#include "opencv2/core/private.cuda.hpp"
5053
#include "opencv2/cudacodec.hpp"
5154
#include "video_source.hpp"

modules/cudacodec/src/frame_queue.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@
4747
#include "opencv2/core/utility.hpp"
4848
#include "opencv2/core/private.cuda.hpp"
4949

50-
#include <nvcuvid.h>
50+
#if CUDA_VERSION >= 9000
51+
#include <dynlink_nvcuvid.h>
52+
#else
53+
#include <nvcuvid.h>
54+
#endif
5155

5256
namespace cv { namespace cudacodec { namespace detail
5357
{

modules/cudacodec/src/precomp.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@
5656
#include "opencv2/core/private.cuda.hpp"
5757

5858
#ifdef HAVE_NVCUVID
59-
#include <dynlink_nvcuvid.h>
59+
#if CUDA_VERSION >= 9000
60+
#include <dynlink_nvcuvid.h>
61+
#else
62+
#include <nvcuvid.h>
63+
#endif
6064

6165
#ifdef _WIN32
6266
#define NOMINMAX

modules/cudacodec/src/video_decoder.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@
4444
#ifndef __VIDEO_DECODER_HPP__
4545
#define __VIDEO_DECODER_HPP__
4646

47-
#include <nvcuvid.h>
47+
#if CUDA_VERSION >= 9000
48+
#include <dynlink_nvcuvid.h>
49+
#else
50+
#include <nvcuvid.h>
51+
#endif
4852

4953
#include "opencv2/core/private.cuda.hpp"
5054
#include "opencv2/cudacodec.hpp"

modules/cudacodec/src/video_parser.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@
4444
#ifndef __VIDEO_PARSER_HPP__
4545
#define __VIDEO_PARSER_HPP__
4646

47-
#include <nvcuvid.h>
47+
#if CUDA_VERSION >= 9000
48+
#include <dynlink_nvcuvid.h>
49+
#else
50+
#include <nvcuvid.h>
51+
#endif
4852

4953
#include "opencv2/core/private.cuda.hpp"
5054
#include "opencv2/cudacodec.hpp"

0 commit comments

Comments
 (0)