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
ca0d8e83
Commit
ca0d8e83
authored
Dec 25, 2013
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/volume: extend volume logging
parent
97aa5546
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
af_volume.c
libavfilter/af_volume.c
+7
-6
No files found.
libavfilter/af_volume.c
View file @
ca0d8e83
...
...
@@ -249,16 +249,17 @@ static int set_volume(AVFilterContext *ctx)
}
vol
->
var_values
[
VAR_VOLUME
]
=
vol
->
volume
;
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"n:%f t:%f pts:%f precision:%s "
,
vol
->
var_values
[
VAR_N
],
vol
->
var_values
[
VAR_T
],
vol
->
var_values
[
VAR_PTS
],
precision_str
[
vol
->
precision
]);
if
(
vol
->
precision
==
PRECISION_FIXED
)
{
vol
->
volume_i
=
(
int
)(
vol
->
volume
*
256
+
0
.
5
);
vol
->
volume
=
vol
->
volume_i
/
256
.
0
;
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"volume:(%d/256)(%f)(%1.2fdB) precision:fixed
\n
"
,
vol
->
volume_i
,
vol
->
volume
,
20
.
0
*
log
(
vol
->
volume
)
/
M_LN10
);
}
else
{
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"volume:(%f)(%1.2fdB) precision:%s
\n
"
,
vol
->
volume
,
20
.
0
*
log
(
vol
->
volume
)
/
M_LN10
,
precision_str
[
vol
->
precision
]);
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"volume_i:%d/255 "
,
vol
->
volume_i
);
}
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"volume:%f volume_dB:%f
\n
"
,
vol
->
volume
,
20
.
0
*
log
(
vol
->
volume
)
/
M_LN10
);
volume_init
(
vol
);
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