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
287e9544
Commit
287e9544
authored
May 30, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mono mixer: remove dummy block_t <-> aout_buffer_t conversions
parent
e5ccd0bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
20 deletions
+4
-20
modules/audio_filter/channel_mixer/mono.c
modules/audio_filter/channel_mixer/mono.c
+4
-20
No files found.
modules/audio_filter/channel_mixer/mono.c
View file @
287e9544
...
...
@@ -453,9 +453,7 @@ static void CloseFilter( vlc_object_t *p_this)
*****************************************************************************/
static
block_t
*
Convert
(
filter_t
*
p_filter
,
block_t
*
p_block
)
{
aout_buffer_t
in_buf
,
out_buf
;
block_t
*
p_out
=
NULL
;
unsigned
int
i_samples
;
block_t
*
p_out
;
int
i_out_size
;
if
(
!
p_block
||
!
p_block
->
i_nb_samples
)
...
...
@@ -478,13 +476,6 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
p_out
->
i_nb_samples
=
(
p_block
->
i_nb_samples
/
p_filter
->
p_sys
->
i_nb_channels
)
*
aout_FormatNbChannels
(
&
(
p_filter
->
fmt_out
.
audio
)
);
p_out
->
i_dts
=
p_block
->
i_dts
;
p_out
->
i_pts
=
p_block
->
i_pts
;
p_out
->
i_length
=
p_block
->
i_length
;
in_buf
.
p_buffer
=
p_block
->
p_buffer
;
in_buf
.
i_buffer
=
p_block
->
i_buffer
;
in_buf
.
i_nb_samples
=
p_block
->
i_nb_samples
;
#if 0
unsigned int i_in_size = in_buf.i_nb_samples * (p_filter->p_sys->i_bitspersample/8) *
...
...
@@ -496,24 +487,17 @@ static block_t *Convert( filter_t *p_filter, block_t *p_block )
}
#endif
out_buf
.
p_buffer
=
p_out
->
p_buffer
;
out_buf
.
i_buffer
=
p_out
->
i_buffer
;
out_buf
.
i_nb_samples
=
p_out
->
i_nb_samples
;
memset
(
p_out
->
p_buffer
,
0
,
i_out_size
);
if
(
p_filter
->
p_sys
->
b_downmix
)
{
stereo2mono_downmix
(
p_filter
,
&
in_buf
,
&
out_buf
);
i_samples
=
mono
(
p_filter
,
&
out_buf
,
&
in_buf
);
stereo2mono_downmix
(
p_filter
,
p_block
,
p_out
);
mono
(
p_filter
,
p_out
,
p_block
);
}
else
{
i_samples
=
stereo_to_mono
(
p_filter
,
&
out_buf
,
&
in_buf
);
stereo_to_mono
(
p_filter
,
p_out
,
p_block
);
}
p_out
->
i_buffer
=
out_buf
.
i_buffer
;
p_out
->
i_nb_samples
=
out_buf
.
i_nb_samples
;
block_Release
(
p_block
);
return
p_out
;
}
...
...
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