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
8a2e2fc3
Commit
8a2e2fc3
authored
Oct 02, 2015
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/avf_showwaves: remove looping on request_frame().
parent
9a520c4d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
avf_showwaves.c
libavfilter/avf_showwaves.c
+2
-8
No files found.
libavfilter/avf_showwaves.c
View file @
8a2e2fc3
...
...
@@ -53,7 +53,6 @@ typedef struct {
int
buf_idx
;
int16_t
*
buf_idy
;
/* y coordinate of previous sample for each channel */
AVFrame
*
outpicref
;
int
req_fullfilled
;
int
n
;
int
sample_count_mod
;
int
mode
;
///< ShowWavesMode
...
...
@@ -179,8 +178,7 @@ inline static int push_frame(AVFilterLink *outlink)
int
nb_channels
=
inlink
->
channels
;
int
ret
,
i
;
if
((
ret
=
ff_filter_frame
(
outlink
,
showwaves
->
outpicref
))
>=
0
)
showwaves
->
req_fullfilled
=
1
;
ret
=
ff_filter_frame
(
outlink
,
showwaves
->
outpicref
);
showwaves
->
outpicref
=
NULL
;
showwaves
->
buf_idx
=
0
;
for
(
i
=
0
;
i
<
nb_channels
;
i
++
)
...
...
@@ -248,11 +246,7 @@ static int request_frame(AVFilterLink *outlink)
AVFilterLink
*
inlink
=
outlink
->
src
->
inputs
[
0
];
int
ret
;
showwaves
->
req_fullfilled
=
0
;
do
{
ret
=
ff_request_frame
(
inlink
);
}
while
(
!
showwaves
->
req_fullfilled
&&
ret
>=
0
);
if
(
ret
==
AVERROR_EOF
&&
showwaves
->
outpicref
)
{
if
(
showwaves
->
single_pic
)
push_single_pic
(
outlink
);
...
...
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