Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
ff308460
Commit
ff308460
authored
Jun 01, 2017
by
Timo Rothenpieler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/cuvid: make capability check optional
parent
f890a6d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
cuvid.c
libavcodec/cuvid.c
+15
-0
No files found.
libavcodec/cuvid.c
View file @
ff308460
...
...
@@ -707,6 +707,21 @@ static int cuvid_test_capabilities(AVCodecContext *avctx,
CUVIDDECODECAPS
*
caps
;
int
res8
=
0
,
res10
=
0
,
res12
=
0
;
if
(
!
ctx
->
cvdl
->
cuvidGetDecoderCaps
)
{
av_log
(
avctx
,
AV_LOG_WARNING
,
"Used Nvidia driver is too old to perform a capability check.
\n
"
);
av_log
(
avctx
,
AV_LOG_WARNING
,
"The minimum required version is "
#if defined(_WIN32) || defined(__CYGWIN__)
"378.66"
#else
"378.13"
#endif
". Continuing blind.
\n
"
);
ctx
->
caps8
.
bIsSupported
=
ctx
->
caps10
.
bIsSupported
=
1
;
// 12 bit was not supported before the capability check was introduced, so disable it.
ctx
->
caps12
.
bIsSupported
=
0
;
return
0
;
}
ctx
->
caps8
.
eCodecType
=
ctx
->
caps10
.
eCodecType
=
ctx
->
caps12
.
eCodecType
=
cuparseinfo
->
CodecType
;
ctx
->
caps8
.
eChromaFormat
=
ctx
->
caps10
.
eChromaFormat
=
ctx
->
caps12
.
eChromaFormat
...
...
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