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
23538ad2
Commit
23538ad2
authored
May 08, 2017
by
Timo Rothenpieler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/nvenc: remove usage of deprecated fields
parent
78518b72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
nvenc.c
libavcodec/nvenc.c
+0
-7
No files found.
libavcodec/nvenc.c
View file @
23538ad2
...
@@ -1132,7 +1132,6 @@ static av_cold int nvenc_alloc_surface(AVCodecContext *avctx, int idx)
...
@@ -1132,7 +1132,6 @@ static av_cold int nvenc_alloc_surface(AVCodecContext *avctx, int idx)
allocSurf
.
version
=
NV_ENC_CREATE_INPUT_BUFFER_VER
;
allocSurf
.
version
=
NV_ENC_CREATE_INPUT_BUFFER_VER
;
allocSurf
.
width
=
(
avctx
->
width
+
31
)
&
~
31
;
allocSurf
.
width
=
(
avctx
->
width
+
31
)
&
~
31
;
allocSurf
.
height
=
(
avctx
->
height
+
31
)
&
~
31
;
allocSurf
.
height
=
(
avctx
->
height
+
31
)
&
~
31
;
allocSurf
.
memoryHeap
=
NV_ENC_MEMORY_HEAP_SYSMEM_CACHED
;
allocSurf
.
bufferFmt
=
ctx
->
surfaces
[
idx
].
format
;
allocSurf
.
bufferFmt
=
ctx
->
surfaces
[
idx
].
format
;
nv_status
=
p_nvenc
->
nvEncCreateInputBuffer
(
ctx
->
nvencoder
,
&
allocSurf
);
nv_status
=
p_nvenc
->
nvEncCreateInputBuffer
(
ctx
->
nvencoder
,
&
allocSurf
);
...
@@ -1145,12 +1144,6 @@ static av_cold int nvenc_alloc_surface(AVCodecContext *avctx, int idx)
...
@@ -1145,12 +1144,6 @@ static av_cold int nvenc_alloc_surface(AVCodecContext *avctx, int idx)
ctx
->
surfaces
[
idx
].
height
=
allocSurf
.
height
;
ctx
->
surfaces
[
idx
].
height
=
allocSurf
.
height
;
}
}
/* 1MB is large enough to hold most output frames.
* NVENC increases this automaticaly if it is not enough. */
allocOut
.
size
=
1024
*
1024
;
allocOut
.
memoryHeap
=
NV_ENC_MEMORY_HEAP_SYSMEM_CACHED
;
nv_status
=
p_nvenc
->
nvEncCreateBitstreamBuffer
(
ctx
->
nvencoder
,
&
allocOut
);
nv_status
=
p_nvenc
->
nvEncCreateBitstreamBuffer
(
ctx
->
nvencoder
,
&
allocOut
);
if
(
nv_status
!=
NV_ENC_SUCCESS
)
{
if
(
nv_status
!=
NV_ENC_SUCCESS
)
{
int
err
=
nvenc_print_error
(
avctx
,
nv_status
,
"CreateBitstreamBuffer failed"
);
int
err
=
nvenc_print_error
(
avctx
,
nv_status
,
"CreateBitstreamBuffer failed"
);
...
...
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