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
114f3f52
Commit
114f3f52
authored
Oct 02, 2015
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/avf_showcqt: remove looping on request_frame().
parent
4982130d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
avf_showcqt.c
libavfilter/avf_showcqt.c
+1
-8
No files found.
libavfilter/avf_showcqt.c
View file @
114f3f52
...
...
@@ -75,7 +75,6 @@ typedef struct {
int
spectogram_count
;
int
spectogram_index
;
int
fft_bits
;
int
req_fullfilled
;
int
remaining_fill
;
char
*
tlength
;
char
*
volume
;
...
...
@@ -423,7 +422,6 @@ static int config_output(AVFilterLink *outlink)
outlink
->
w
=
video_width
;
outlink
->
h
=
video_height
;
s
->
req_fullfilled
=
0
;
s
->
spectogram_index
=
0
;
s
->
frame_count
=
0
;
s
->
spectogram_count
=
0
;
...
...
@@ -649,7 +647,6 @@ static int plot_cqt(AVFilterLink *inlink)
s
->
outpicref
->
pts
=
s
->
frame_count
;
ret
=
ff_filter_frame
(
outlink
,
av_frame_clone
(
s
->
outpicref
));
s
->
req_fullfilled
=
1
;
s
->
frame_count
++
;
}
s
->
spectogram_count
=
(
s
->
spectogram_count
+
1
)
%
s
->
count
;
...
...
@@ -723,11 +720,7 @@ static int request_frame(AVFilterLink *outlink)
AVFilterLink
*
inlink
=
outlink
->
src
->
inputs
[
0
];
int
ret
;
s
->
req_fullfilled
=
0
;
do
{
ret
=
ff_request_frame
(
inlink
);
}
while
(
!
s
->
req_fullfilled
&&
ret
>=
0
);
ret
=
ff_request_frame
(
inlink
);
if
(
ret
==
AVERROR_EOF
&&
s
->
outpicref
)
filter_frame
(
inlink
,
NULL
);
return
ret
;
...
...
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