Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
f370142e
Commit
f370142e
authored
6 years ago
by
Mark Thompson
Browse files
Options
Downloads
Patches
Plain Diff
lavfi/ebur128: Fix mixed declarations and code
parent
b02490a4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavfilter/f_ebur128.c
+3
-2
3 additions, 2 deletions
libavfilter/f_ebur128.c
with
3 additions
and
2 deletions
libavfilter/f_ebur128.c
+
3
−
2
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment