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
a1df7865
Commit
a1df7865
authored
May 12, 2016
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nvenc: only write the VUI signal type fields if they are set
Based on a patch by Agatha Hu <ahu@nvidia.com>.
parent
cea1fb85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
nvenc.c
libavcodec/nvenc.c
+6
-2
No files found.
libavcodec/nvenc.c
View file @
a1df7865
...
...
@@ -588,8 +588,9 @@ static int nvenc_setup_h264_config(AVCodecContext *avctx)
NV_ENC_CONFIG_H264
*
h264
=
&
cc
->
encodeCodecConfig
.
h264Config
;
NV_ENC_CONFIG_H264_VUI_PARAMETERS
*
vui
=
&
h264
->
h264VUIParameters
;
vui
->
colourDescriptionPresentFlag
=
1
;
vui
->
videoSignalTypePresentFlag
=
1
;
vui
->
colourDescriptionPresentFlag
=
avctx
->
colorspace
!=
AVCOL_SPC_UNSPECIFIED
||
avctx
->
color_primaries
!=
AVCOL_PRI_UNSPECIFIED
||
avctx
->
color_trc
!=
AVCOL_TRC_UNSPECIFIED
;
vui
->
colourMatrix
=
avctx
->
colorspace
;
vui
->
colourPrimaries
=
avctx
->
color_primaries
;
...
...
@@ -597,6 +598,9 @@ static int nvenc_setup_h264_config(AVCodecContext *avctx)
vui
->
videoFullRangeFlag
=
avctx
->
color_range
==
AVCOL_RANGE_JPEG
;
vui
->
videoSignalTypePresentFlag
=
vui
->
colourDescriptionPresentFlag
||
vui
->
videoFullRangeFlag
;
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
;
...
...
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