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
f370142e
Commit
f370142e
authored
Oct 23, 2018
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/ebur128: Fix mixed declarations and code
parent
b02490a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
f_ebur128.c
libavfilter/f_ebur128.c
+3
-2
No files found.
libavfilter/f_ebur128.c
View file @
f370142e
...
...
@@ -777,6 +777,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
int
x
,
y
,
ret
;
uint8_t
*
p
;
double
gauge_value
;
int
y_loudness_lu_graph
,
y_loudness_lu_gauge
;
if
(
ebur128
->
gauge_type
==
GAUGE_TYPE_MOMENTARY
)
{
gauge_value
=
loudness_400
-
ebur128
->
target
;
...
...
@@ -784,8 +785,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
gauge_value
=
loudness_3000
-
ebur128
->
target
;
}
const
int
y_loudness_lu_graph
=
lu_to_y
(
ebur128
,
loudness_3000
-
ebur128
->
target
);
const
int
y_loudness_lu_gauge
=
lu_to_y
(
ebur128
,
gauge_value
);
y_loudness_lu_graph
=
lu_to_y
(
ebur128
,
loudness_3000
-
ebur128
->
target
);
y_loudness_lu_gauge
=
lu_to_y
(
ebur128
,
gauge_value
);
/* draw the graph using the short-term loudness */
p
=
pic
->
data
[
0
]
+
ebur128
->
graph
.
y
*
pic
->
linesize
[
0
]
+
ebur128
->
graph
.
x
*
3
;
...
...
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