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
99e34098
Commit
99e34098
authored
Sep 23, 2019
by
vectronic
Committed by
Derek Buitenhuis
Mar 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/mov: whitespace indent
Signed-off-by:
vectronic
<
hello.vectronic@gmail.com
>
parent
472e0445
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
mov.c
libavformat/mov.c
+26
-26
No files found.
libavformat/mov.c
View file @
99e34098
...
...
@@ -1575,34 +1575,34 @@ static int mov_read_colr(MOVContext *c, AVIOContext *pb, MOVAtom atom)
return
ret
;
}
else
{
color_primaries
=
avio_rb16
(
pb
);
color_trc
=
avio_rb16
(
pb
);
color_matrix
=
avio_rb16
(
pb
);
av_log
(
c
->
fc
,
AV_LOG_TRACE
,
"%s: pri %d trc %d matrix %d"
,
color_parameter_type
,
color_primaries
,
color_trc
,
color_matrix
);
if
(
!
strncmp
(
color_parameter_type
,
"nclx"
,
4
))
{
uint8_t
color_range
=
avio_r8
(
pb
)
>>
7
;
av_log
(
c
->
fc
,
AV_LOG_TRACE
,
" full %"
PRIu8
""
,
color_range
);
if
(
color_range
)
st
->
codecpar
->
color_range
=
AVCOL_RANGE_JPEG
;
else
st
->
codecpar
->
color_range
=
AVCOL_RANGE_MPEG
;
}
color_primaries
=
avio_rb16
(
pb
);
color_trc
=
avio_rb16
(
pb
);
color_matrix
=
avio_rb16
(
pb
);
if
(
!
av_color_primaries_name
(
color_primaries
))
color_primaries
=
AVCOL_PRI_UNSPECIFIED
;
if
(
!
av_color_transfer_name
(
color_trc
))
color_trc
=
AVCOL_TRC_UNSPECIFIED
;
if
(
!
av_color_space_name
(
color_matrix
))
color_matrix
=
AVCOL_SPC_UNSPECIFIED
;
av_log
(
c
->
fc
,
AV_LOG_TRACE
,
"%s: pri %d trc %d matrix %d"
,
color_parameter_type
,
color_primaries
,
color_trc
,
color_matrix
);
if
(
!
strncmp
(
color_parameter_type
,
"nclx"
,
4
))
{
uint8_t
color_range
=
avio_r8
(
pb
)
>>
7
;
av_log
(
c
->
fc
,
AV_LOG_TRACE
,
" full %"
PRIu8
""
,
color_range
);
if
(
color_range
)
st
->
codecpar
->
color_range
=
AVCOL_RANGE_JPEG
;
else
st
->
codecpar
->
color_range
=
AVCOL_RANGE_MPEG
;
}
st
->
codecpar
->
color_primaries
=
color_primaries
;
st
->
codecpar
->
color_trc
=
color_trc
;
st
->
codecpar
->
color_space
=
color_matrix
;
av_log
(
c
->
fc
,
AV_LOG_TRACE
,
"
\n
"
);
if
(
!
av_color_primaries_name
(
color_primaries
))
color_primaries
=
AVCOL_PRI_UNSPECIFIED
;
if
(
!
av_color_transfer_name
(
color_trc
))
color_trc
=
AVCOL_TRC_UNSPECIFIED
;
if
(
!
av_color_space_name
(
color_matrix
))
color_matrix
=
AVCOL_SPC_UNSPECIFIED
;
st
->
codecpar
->
color_primaries
=
color_primaries
;
st
->
codecpar
->
color_trc
=
color_trc
;
st
->
codecpar
->
color_space
=
color_matrix
;
av_log
(
c
->
fc
,
AV_LOG_TRACE
,
"
\n
"
);
}
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