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
7dbbf6a1
Commit
7dbbf6a1
authored
Jun 29, 2010
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffplay: remove VLA
Originally committed as revision 23892 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
82a8d0f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ffplay.c
ffplay.c
+5
-1
No files found.
ffplay.c
View file @
7dbbf6a1
...
...
@@ -168,6 +168,7 @@ typedef struct VideoState {
int
last_i_start
;
RDFTContext
*
rdft
;
int
rdft_bits
;
FFTSample
*
rdft_data
;
int
xpos
;
SDL_Thread
*
subtitle_tid
;
...
...
@@ -917,12 +918,15 @@ static void video_audio_display(VideoState *s)
nb_display_channels
=
FFMIN
(
nb_display_channels
,
2
);
if
(
rdft_bits
!=
s
->
rdft_bits
){
av_rdft_end
(
s
->
rdft
);
av_free
(
s
->
rdft_data
);
s
->
rdft
=
av_rdft_init
(
rdft_bits
,
DFT_R2C
);
s
->
rdft_bits
=
rdft_bits
;
s
->
rdft_data
=
av_malloc
(
4
*
nb_freq
*
sizeof
(
*
s
->
rdft_data
));
}
{
FFTSample
data
[
2
][
2
*
nb_freq
];
FFTSample
*
data
[
2
];
for
(
ch
=
0
;
ch
<
nb_display_channels
;
ch
++
)
{
data
[
ch
]
=
s
->
rdft_data
+
2
*
nb_freq
*
ch
;
i
=
i_start
+
ch
;
for
(
x
=
0
;
x
<
2
*
nb_freq
;
x
++
)
{
double
w
=
(
x
-
nb_freq
)
*
(
1
.
0
/
nb_freq
);
...
...
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