Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
dc0416e2
Commit
dc0416e2
authored
Dec 07, 2006
by
Benjamin Pracht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* backport fix when resampling mono files
parent
4909cda5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/audio_filter/resampler/linear.c
modules/audio_filter/resampler/linear.c
+2
-2
No files found.
modules/audio_filter/resampler/linear.c
View file @
dc0416e2
...
...
@@ -102,7 +102,7 @@ static int Create( vlc_object_t *p_this )
return
VLC_ENOMEM
;
}
p_sys
->
p_prev_sample
=
malloc
(
aout_FormatNbChannels
(
&
p_filter
->
input
)
*
sizeof
(
int32_t
)
);
p_filter
->
input
.
i_channels
*
sizeof
(
int32_t
)
);
if
(
p_sys
->
p_prev_sample
==
NULL
)
{
msg_Err
(
p_filter
,
"out of memory"
);
...
...
@@ -143,7 +143,7 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
float
*
p_in
,
*
p_out
=
(
float
*
)
p_out_buf
->
p_buffer
;
float
*
p_prev_sample
=
(
float
*
)
p_sys
->
p_prev_sample
;
int
i_nb_channels
=
aout_FormatNbChannels
(
&
p_filter
->
input
)
;
int
i_nb_channels
=
p_filter
->
input
.
i_channels
;
int
i_in_nb
=
p_in_buf
->
i_nb_samples
;
int
i_chan
,
i_in
,
i_out
=
0
;
...
...
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