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
40490b3a
Commit
40490b3a
authored
Mar 21, 2019
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/cbs_av1: fix range of values for Mastering Display Color Volume Metadata OBUs
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
b8f53a23
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
cbs_av1_syntax_template.c
libavcodec/cbs_av1_syntax_template.c
+8
-5
No files found.
libavcodec/cbs_av1_syntax_template.c
View file @
40490b3a
...
...
@@ -1637,15 +1637,18 @@ static int FUNC(metadata_hdr_mdcv)(CodedBitstreamContext *ctx, RWContext *rw,
int
err
,
i
;
for
(
i
=
0
;
i
<
3
;
i
++
)
{
f
cs
(
16
,
primary_chromaticity_x
[
i
],
0
,
50000
,
1
,
i
);
f
cs
(
16
,
primary_chromaticity_y
[
i
],
0
,
50000
,
1
,
i
);
f
bs
(
16
,
primary_chromaticity_x
[
i
]
,
1
,
i
);
f
bs
(
16
,
primary_chromaticity_y
[
i
]
,
1
,
i
);
}
f
c
(
16
,
white_point_chromaticity_x
,
0
,
50000
);
f
c
(
16
,
white_point_chromaticity_y
,
0
,
50000
);
f
b
(
16
,
white_point_chromaticity_x
);
f
b
(
16
,
white_point_chromaticity_y
);
fc
(
32
,
luminance_max
,
1
,
MAX_UINT_BITS
(
32
));
fc
(
32
,
luminance_min
,
0
,
current
->
luminance_max
>>
6
);
// luminance_min must be lower than luminance_max. Convert luminance_max from
// 24.8 fixed point to 18.14 fixed point in order to compare them.
fc
(
32
,
luminance_min
,
0
,
FFMIN
(((
uint64_t
)
current
->
luminance_max
<<
6
)
-
1
,
MAX_UINT_BITS
(
32
)));
return
0
;
}
...
...
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