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
f7d117b4
Commit
f7d117b4
authored
Jun 07, 2018
by
Pavel Koshevoy
Committed by
Timo Rothenpieler
Jun 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/nvenc: enable nvenc encoder instance reuse
Signed-off-by:
Timo Rothenpieler
<
timo@rothenpieler.org
>
parent
29cddc99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
nvenc.c
libavcodec/nvenc.c
+10
-2
No files found.
libavcodec/nvenc.c
View file @
f7d117b4
...
...
@@ -2051,8 +2051,16 @@ int ff_nvenc_send_frame(AVCodecContext *avctx, const AVFrame *frame)
if
((
!
ctx
->
cu_context
&&
!
ctx
->
d3d11_device
)
||
!
ctx
->
nvencoder
)
return
AVERROR
(
EINVAL
);
if
(
ctx
->
encoder_flushing
)
return
AVERROR_EOF
;
if
(
ctx
->
encoder_flushing
)
{
if
(
avctx
->
internal
->
draining
)
return
AVERROR_EOF
;
ctx
->
encoder_flushing
=
0
;
ctx
->
first_packet_output
=
0
;
ctx
->
initial_pts
[
0
]
=
AV_NOPTS_VALUE
;
ctx
->
initial_pts
[
1
]
=
AV_NOPTS_VALUE
;
av_fifo_reset
(
ctx
->
timestamp_list
);
}
if
(
frame
)
{
in_surf
=
get_free_frame
(
ctx
);
...
...
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