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
25b22666
Commit
25b22666
authored
Mar 30, 2018
by
Martin Vignali
Committed by
Paul B Mahol
Mar 31, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/showvolume : calculate fade only if fade < 1.
parent
34304677
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
avf_showvolume.c
libavfilter/avf_showvolume.c
+2
-0
No files found.
libavfilter/avf_showvolume.c
View file @
25b22666
...
...
@@ -273,6 +273,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
}
s
->
out
->
pts
=
insamples
->
pts
;
if
(
s
->
f
<
1
.)
{
for
(
j
=
0
;
j
<
outlink
->
h
;
j
++
)
{
uint8_t
*
dst
=
s
->
out
->
data
[
0
]
+
j
*
s
->
out
->
linesize
[
0
];
const
uint32_t
alpha
=
s
->
bgopacity
*
255
;
...
...
@@ -284,6 +285,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
dst
[
k
*
4
+
3
]
=
FFMAX
(
dst
[
k
*
4
+
3
]
*
s
->
f
,
alpha
);
}
}
}
if
(
s
->
orientation
)
{
/* vertical */
for
(
c
=
0
;
c
<
inlink
->
channels
;
c
++
)
{
...
...
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