Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
cacec38e
Commit
cacec38e
authored
Dec 09, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2380 from cudawarped:patch_cudacodec_memory_leak
parents
83ad5c63
7cb627a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
cuvid_video_source.cpp
modules/cudacodec/src/cuvid_video_source.cpp
+1
-1
video_parser.cpp
modules/cudacodec/src/video_parser.cpp
+1
-0
No files found.
modules/cudacodec/src/cuvid_video_source.cpp
View file @
cacec38e
...
...
@@ -62,7 +62,7 @@ cv::cudacodec::detail::CuvidVideoSource::CuvidVideoSource(const String& fname)
// now create the actual source
CUresult
cuRes
=
cuvidCreateVideoSource
(
&
videoSource_
,
fname
.
c_str
(),
&
params
);
if
(
cuRes
==
CUDA_ERROR_INVALID_SOURCE
)
throw
std
::
runtime_error
(
"
"
);
CV_Error
(
Error
::
StsUnsupportedFormat
,
"Unsupported video source
"
);
cuSafeCall
(
cuRes
);
CUVIDEOFORMAT
vidfmt
;
...
...
modules/cudacodec/src/video_parser.cpp
View file @
cacec38e
...
...
@@ -118,6 +118,7 @@ int CUDAAPI cv::cudacodec::detail::VideoParser::HandleVideoSequence(void* userDa
try
{
thiz
->
videoDecoder_
->
release
();
thiz
->
videoDecoder_
->
create
(
newFormat
);
}
catch
(
const
cv
::
Exception
&
)
...
...
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