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
a1652aca
Commit
a1652aca
authored
May 23, 2017
by
Timo Rothenpieler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/nvenc: remove unnecessary alignment
Fixes #6260
parent
504d5804
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
nvenc.c
libavcodec/nvenc.c
+4
-4
No files found.
libavcodec/nvenc.c
View file @
a1652aca
...
...
@@ -1154,8 +1154,8 @@ static av_cold int nvenc_alloc_surface(AVCodecContext *avctx, int idx)
}
allocSurf
.
version
=
NV_ENC_CREATE_INPUT_BUFFER_VER
;
allocSurf
.
width
=
(
avctx
->
width
+
31
)
&
~
31
;
allocSurf
.
height
=
(
avctx
->
height
+
31
)
&
~
31
;
allocSurf
.
width
=
avctx
->
width
;
allocSurf
.
height
=
avctx
->
height
;
allocSurf
.
bufferFmt
=
ctx
->
surfaces
[
idx
].
format
;
nv_status
=
p_nvenc
->
nvEncCreateInputBuffer
(
ctx
->
nvencoder
,
&
allocSurf
);
...
...
@@ -1762,8 +1762,8 @@ int ff_nvenc_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
pic_params
.
inputBuffer
=
inSurf
->
input_surface
;
pic_params
.
bufferFmt
=
inSurf
->
format
;
pic_params
.
inputWidth
=
avctx
->
width
;
pic_params
.
inputHeight
=
avctx
->
height
;
pic_params
.
inputWidth
=
inSurf
->
width
;
pic_params
.
inputHeight
=
inSurf
->
height
;
pic_params
.
inputPitch
=
inSurf
->
pitch
;
pic_params
.
outputBitstream
=
inSurf
->
output_surface
;
...
...
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