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
b7cc4eb3
Commit
b7cc4eb3
authored
Mar 20, 2017
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/nvenc: misc cosmetics to reduce diff with Libav
parent
e849296d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
nvenc.c
libavcodec/nvenc.c
+13
-13
No files found.
libavcodec/nvenc.c
View file @
b7cc4eb3
...
@@ -883,7 +883,7 @@ static av_cold int nvenc_setup_hevc_config(AVCodecContext *avctx)
...
@@ -883,7 +883,7 @@ static av_cold int nvenc_setup_hevc_config(AVCodecContext *avctx)
hevc
->
outputPictureTimingSEI
=
1
;
hevc
->
outputPictureTimingSEI
=
1
;
}
}
switch
(
ctx
->
profile
)
{
switch
(
ctx
->
profile
)
{
case
NV_ENC_HEVC_PROFILE_MAIN
:
case
NV_ENC_HEVC_PROFILE_MAIN
:
cc
->
profileGUID
=
NV_ENC_HEVC_PROFILE_MAIN_GUID
;
cc
->
profileGUID
=
NV_ENC_HEVC_PROFILE_MAIN_GUID
;
avctx
->
profile
=
FF_PROFILE_HEVC_MAIN
;
avctx
->
profile
=
FF_PROFILE_HEVC_MAIN
;
...
@@ -1299,7 +1299,7 @@ static NvencSurface *get_free_frame(NvencContext *ctx)
...
@@ -1299,7 +1299,7 @@ static NvencSurface *get_free_frame(NvencContext *ctx)
{
{
int
i
;
int
i
;
for
(
i
=
0
;
i
<
ctx
->
nb_surfaces
;
++
i
)
{
for
(
i
=
0
;
i
<
ctx
->
nb_surfaces
;
i
++
)
{
if
(
!
ctx
->
surfaces
[
i
].
lockCount
)
{
if
(
!
ctx
->
surfaces
[
i
].
lockCount
)
{
ctx
->
surfaces
[
i
].
lockCount
=
1
;
ctx
->
surfaces
[
i
].
lockCount
=
1
;
return
&
ctx
->
surfaces
[
i
];
return
&
ctx
->
surfaces
[
i
];
...
...
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