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
ee7d6738
Commit
ee7d6738
authored
Oct 22, 2016
by
Philip Langdale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/cuvid: Allow reinitialization of decoder
In practice, this works fine.
parent
cc71fa31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
cuvid.c
libavcodec/cuvid.c
+5
-3
No files found.
libavcodec/cuvid.c
View file @
ee7d6738
...
...
@@ -141,9 +141,11 @@ static int CUDAAPI cuvid_handle_video_sequence(void *opaque, CUVIDEOFORMAT* form
return
1
;
if
(
ctx
->
cudecoder
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"re-initializing decoder is not supported
\n
"
);
ctx
->
internal_error
=
AVERROR
(
EINVAL
);
return
0
;
av_log
(
avctx
,
AV_LOG_TRACE
,
"Re-initializing decoder
\n
"
);
ctx
->
internal_error
=
CHECK_CU
(
cuvidDestroyDecoder
(
ctx
->
cudecoder
));
if
(
ctx
->
internal_error
<
0
)
return
0
;
ctx
->
cudecoder
=
NULL
;
}
if
(
hwframe_ctx
->
pool
&&
(
...
...
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