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
7dd8cd19
Commit
7dd8cd19
authored
Jun 13, 2016
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/h264_sei: fix broken style around green metadata code
parent
5342bb62
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
21 deletions
+19
-21
h264.h
libavcodec/h264.h
+5
-5
h264_sei.c
libavcodec/h264_sei.c
+14
-16
No files found.
libavcodec/h264.h
View file @
7dd8cd19
libavcodec/h264_sei.c
View file @
7dd8cd19
...
...
@@ -363,28 +363,26 @@ static int decode_display_orientation(H264Context *h)
return
0
;
}
static
int
decode_
GreenM
etadata
(
H264SEIGreenMetaData
*
h
,
GetBitContext
*
gb
)
static
int
decode_
green_m
etadata
(
H264SEIGreenMetaData
*
h
,
GetBitContext
*
gb
)
{
h
->
green_metadata_type
=
get_bits
(
gb
,
8
);
h
->
green_metadata_type
=
get_bits
(
gb
,
8
);
if
(
h
->
green_metadata_type
==
0
)
{
h
->
period_type
=
get_bits
(
gb
,
8
);
if
(
h
->
green_metadata_type
==
0
)
{
h
->
period_type
=
get_bits
(
gb
,
8
);
if
(
h
->
period_type
==
2
){
if
(
h
->
period_type
==
2
)
h
->
num_seconds
=
get_bits
(
gb
,
16
);
}
else
if
(
h
->
period_type
==
3
){
else
if
(
h
->
period_type
==
3
)
h
->
num_pictures
=
get_bits
(
gb
,
16
);
}
h
->
percent_non_zero_macroblocks
=
get_bits
(
gb
,
8
);
h
->
percent_intra_coded_macroblocks
=
get_bits
(
gb
,
8
);
h
->
percent_six_tap_filtering
=
get_bits
(
gb
,
8
);
h
->
percent_alpha_point_deblocking_instance
=
get_bits
(
gb
,
8
);
h
->
percent_non_zero_macroblocks
=
get_bits
(
gb
,
8
);
h
->
percent_intra_coded_macroblocks
=
get_bits
(
gb
,
8
);
h
->
percent_six_tap_filtering
=
get_bits
(
gb
,
8
);
h
->
percent_alpha_point_deblocking_instance
=
get_bits
(
gb
,
8
);
}
else
if
(
h
->
green_metadata_type
==
1
)
{
h
->
xsd_metric_type
=
get_bits
(
gb
,
8
);
h
->
xsd_metric_value
=
get_bits
(
gb
,
16
);
}
else
if
(
h
->
green_metadata_type
==
1
)
{
h
->
xsd_metric_type
=
get_bits
(
gb
,
8
);
h
->
xsd_metric_value
=
get_bits
(
gb
,
16
);
}
return
0
;
...
...
@@ -443,7 +441,7 @@ int ff_h264_decode_sei(H264Context *h)
ret
=
decode_display_orientation
(
h
);
break
;
case
SEI_TYPE_GREEN_METADATA
:
ret
=
decode_
GreenM
etadata
(
&
h
->
sei_green_metadata
,
&
h
->
gb
);
ret
=
decode_
green_m
etadata
(
&
h
->
sei_green_metadata
,
&
h
->
gb
);
break
;
default:
av_log
(
h
->
avctx
,
AV_LOG_DEBUG
,
"unknown SEI type %d
\n
"
,
type
);
...
...
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