Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
f890a6d7
Commit
f890a6d7
authored
Jun 01, 2017
by
Timo Rothenpieler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compat/cuda: make cuvidGetDecoderCaps optional
parent
cb3358b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
dynlink_loader.h
compat/cuda/dynlink_loader.h
+10
-1
No files found.
compat/cuda/dynlink_loader.h
View file @
f890a6d7
...
...
@@ -76,6 +76,15 @@
av_log(NULL, AV_LOG_TRACE, "Loaded sym: %s\n", symbol); \
} while (0)
#define LOAD_SYMBOL_OPT(fun, tp, symbol) \
do { \
if (!((f->fun) = (tp*)dlsym(f->lib, symbol))) { \
av_log(NULL, AV_LOG_DEBUG, "Cannot load optional %s\n", symbol); \
} else { \
av_log(NULL, AV_LOG_TRACE, "Loaded sym: %s\n", symbol); \
} \
} while (0)
#define GENERIC_LOAD_FUNC_PREAMBLE(T, n, N) \
T *f; \
int ret; \
...
...
@@ -205,7 +214,7 @@ static inline int cuvid_load_functions(CuvidFunctions **functions)
{
GENERIC_LOAD_FUNC_PREAMBLE
(
CuvidFunctions
,
cuvid
,
NVCUVID_LIBNAME
);
LOAD_SYMBOL
(
cuvidGetDecoderCaps
,
tcuvidGetDecoderCaps
,
"cuvidGetDecoderCaps"
);
LOAD_SYMBOL
_OPT
(
cuvidGetDecoderCaps
,
tcuvidGetDecoderCaps
,
"cuvidGetDecoderCaps"
);
LOAD_SYMBOL
(
cuvidCreateDecoder
,
tcuvidCreateDecoder
,
"cuvidCreateDecoder"
);
LOAD_SYMBOL
(
cuvidDestroyDecoder
,
tcuvidDestroyDecoder
,
"cuvidDestroyDecoder"
);
LOAD_SYMBOL
(
cuvidDecodePicture
,
tcuvidDecodePicture
,
"cuvidDecodePicture"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment