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
74b02377
Commit
74b02377
authored
Oct 13, 2014
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mov: Correctly check the color transfer characteristics range
Reported-by:
Ruoyu
<
liangry@ucweb.com
>
parent
1ac5a29b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
mov.c
libavformat/mov.c
+2
-1
No files found.
libavformat/mov.c
View file @
74b02377
...
...
@@ -923,7 +923,8 @@ static int mov_read_colr(MOVContext *c, AVIOContext *pb, MOVAtom atom)
* 23001-8) so some adjusting is required */
if
(
color_primaries
>=
AVCOL_PRI_FILM
)
color_primaries
=
AVCOL_PRI_UNSPECIFIED
;
if
(
color_trc
>=
AVCOL_TRC_LINEAR
||
color_trc
<=
AVCOL_TRC_LOG_SQRT
||
if
((
color_trc
>=
AVCOL_TRC_LINEAR
&&
color_trc
<=
AVCOL_TRC_LOG_SQRT
)
||
color_trc
>=
AVCOL_TRC_BT2020_10
)
color_trc
=
AVCOL_TRC_UNSPECIFIED
;
if
(
color_matrix
>=
AVCOL_SPC_BT2020_NCL
)
...
...
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