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
1841eda6
Commit
1841eda6
authored
Dec 30, 2016
by
Miroslav Slugen
Committed by
Timo Rothenpieler
Jan 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/nvenc: Make AUD optional for h264_nvenc and hevc_nvenc
Signed-off-by:
Timo Rothenpieler
<
timo@rothenpieler.org
>
parent
f8c503d9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
2 deletions
+5
-2
nvenc.c
libavcodec/nvenc.c
+2
-2
nvenc.h
libavcodec/nvenc.h
+1
-0
nvenc_h264.c
libavcodec/nvenc_h264.c
+1
-0
nvenc_hevc.c
libavcodec/nvenc_hevc.c
+1
-0
No files found.
libavcodec/nvenc.c
View file @
1841eda6
...
...
@@ -756,7 +756,7 @@ static av_cold int nvenc_setup_h264_config(AVCodecContext *avctx)
h264
->
disableSPSPPS
=
(
avctx
->
flags
&
AV_CODEC_FLAG_GLOBAL_HEADER
)
?
1
:
0
;
h264
->
repeatSPSPPS
=
(
avctx
->
flags
&
AV_CODEC_FLAG_GLOBAL_HEADER
)
?
0
:
1
;
h264
->
outputAUD
=
1
;
h264
->
outputAUD
=
ctx
->
aud
;
if
(
avctx
->
refs
>=
0
)
{
/* 0 means "let the hardware decide" */
...
...
@@ -840,7 +840,7 @@ static av_cold int nvenc_setup_hevc_config(AVCodecContext *avctx)
hevc
->
disableSPSPPS
=
(
avctx
->
flags
&
AV_CODEC_FLAG_GLOBAL_HEADER
)
?
1
:
0
;
hevc
->
repeatSPSPPS
=
(
avctx
->
flags
&
AV_CODEC_FLAG_GLOBAL_HEADER
)
?
0
:
1
;
hevc
->
outputAUD
=
1
;
hevc
->
outputAUD
=
ctx
->
aud
;
if
(
avctx
->
refs
>=
0
)
{
/* 0 means "let the hardware decide" */
...
...
libavcodec/nvenc.h
View file @
1841eda6
...
...
@@ -153,6 +153,7 @@ typedef struct NvencContext
int
strict_gop
;
int
aq_strength
;
int
quality
;
int
aud
;
}
NvencContext
;
int
ff_nvenc_encode_init
(
AVCodecContext
*
avctx
);
...
...
libavcodec/nvenc_h264.c
View file @
1841eda6
...
...
@@ -107,6 +107,7 @@ static const AVOption options[] = {
OFFSET
(
aq_strength
),
AV_OPT_TYPE_INT
,
{
.
i64
=
8
},
1
,
15
,
VE
},
{
"cq"
,
"Set target quality level (0 to 51, 0 means automatic) for constant quality mode in VBR rate control"
,
OFFSET
(
quality
),
AV_OPT_TYPE_INT
,
{
.
i64
=
0
},
0
,
51
,
VE
},
{
"aud"
,
"Use access unit delimiters"
,
OFFSET
(
aud
),
AV_OPT_TYPE_BOOL
,
{
.
i64
=
0
},
0
,
1
,
VE
},
{
NULL
}
};
...
...
libavcodec/nvenc_hevc.c
View file @
1841eda6
...
...
@@ -104,6 +104,7 @@ static const AVOption options[] = {
OFFSET
(
aq_strength
),
AV_OPT_TYPE_INT
,
{
.
i64
=
8
},
1
,
15
,
VE
},
{
"cq"
,
"Set target quality level (0 to 51, 0 means automatic) for constant quality mode in VBR rate control"
,
OFFSET
(
quality
),
AV_OPT_TYPE_INT
,
{
.
i64
=
0
},
0
,
51
,
VE
},
{
"aud"
,
"Use access unit delimiters"
,
OFFSET
(
aud
),
AV_OPT_TYPE_BOOL
,
{
.
i64
=
0
},
0
,
1
,
VE
},
{
NULL
}
};
...
...
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