Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
3d90c11d
Commit
3d90c11d
authored
May 30, 2008
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix off by 1 errors (CID 42 and 43).
parent
af5aece7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/visualization/visual/effects.c
modules/visualization/visual/effects.c
+2
-2
No files found.
modules/visualization/visual/effects.c
View file @
3d90c11d
...
...
@@ -177,7 +177,7 @@ int spectrum_Run(visual_effect_t * p_effect, aout_instance_t *p_aout,
}
fft_perform
(
p_buffer1
,
p_output
,
p_state
);
for
(
i
=
0
;
i
<
FFT_BUFFER_SIZE
;
i
++
)
p_dest
[
i
]
=
(
(
int
)
sqrt
(
p_output
[
i
+
1
]
)
)
>>
8
;
p_dest
[
i
]
=
(
(
int
)
sqrt
(
p_output
[
i
]
)
)
>>
8
;
for
(
i
=
0
;
i
<
i_nb_bands
;
i
++
)
{
...
...
@@ -477,7 +477,7 @@ int spectrometer_Run(visual_effect_t * p_effect, aout_instance_t *p_aout,
}
fft_perform
(
p_buffer1
,
p_output
,
p_state
);
for
(
i
=
0
;
i
<
FFT_BUFFER_SIZE
;
i
++
)
p_dest
[
i
]
=
(
(
int
)
sqrt
(
p_output
[
i
+
1
]
)
)
>>
8
;
p_dest
[
i
]
=
(
(
int
)
sqrt
(
p_output
[
i
]
)
)
>>
8
;
i_nb_bands
*=
i_sections
;
...
...
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