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
1eb7c1d4
Commit
1eb7c1d4
authored
Dec 18, 2017
by
Rodger Combs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/libx265: support all color parameters that x265 does
parent
0c31a387
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
libx265.c
libavcodec/libx265.c
+3
-3
No files found.
libavcodec/libx265.c
View file @
1eb7c1d4
...
...
@@ -115,11 +115,11 @@ static av_cold int libx265_encode_init(AVCodecContext *avctx)
ctx
->
params
->
sourceHeight
=
avctx
->
height
;
ctx
->
params
->
bEnablePsnr
=
!!
(
avctx
->
flags
&
AV_CODEC_FLAG_PSNR
);
if
((
avctx
->
color_primaries
<=
AVCOL_PRI_
BT2020
&&
if
((
avctx
->
color_primaries
<=
AVCOL_PRI_
SMPTE432
&&
avctx
->
color_primaries
!=
AVCOL_PRI_UNSPECIFIED
)
||
(
avctx
->
color_trc
<=
AVCOL_TRC_
BT2020_12
&&
(
avctx
->
color_trc
<=
AVCOL_TRC_
ARIB_STD_B67
&&
avctx
->
color_trc
!=
AVCOL_TRC_UNSPECIFIED
)
||
(
avctx
->
colorspace
<=
AVCOL_SPC_
BT2020_CL
&&
(
avctx
->
colorspace
<=
AVCOL_SPC_
ICTCP
&&
avctx
->
colorspace
!=
AVCOL_SPC_UNSPECIFIED
))
{
ctx
->
params
->
vui
.
bEnableVideoSignalTypePresentFlag
=
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