Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
f3a2e18c
Commit
f3a2e18c
authored
Jan 29, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics (audio format conversions).
parent
935655a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
15 deletions
+8
-15
modules/audio_filter/converter/format.c
modules/audio_filter/converter/format.c
+8
-15
No files found.
modules/audio_filter/converter/format.c
View file @
f3a2e18c
...
...
@@ -320,8 +320,7 @@ static block_t *S24toFloat32( filter_t *p_filter, block_t *p_block )
float
*
p_out
;
int
i
;
p_block_out
=
p_filter
->
pf_audio_buffer_new
(
p_filter
,
p_block
->
i_buffer
*
4
/
3
);
p_block_out
=
filter_NewAudioBuffer
(
p_filter
,
p_block
->
i_buffer
*
4
/
3
);
if
(
!
p_block_out
)
{
msg_Warn
(
p_filter
,
"can't get output buffer"
);
...
...
@@ -385,8 +384,7 @@ static block_t *S16toFloat32( filter_t *p_filter, block_t *p_block )
float
*
p_out
;
int
i
;
p_block_out
=
p_filter
->
pf_audio_buffer_new
(
p_filter
,
p_block
->
i_buffer
*
2
);
p_block_out
=
filter_NewAudioBuffer
(
p_filter
,
p_block
->
i_buffer
*
2
);
if
(
!
p_block_out
)
{
msg_Warn
(
p_filter
,
"can't get output buffer"
);
...
...
@@ -430,8 +428,7 @@ static block_t *U16toFloat32( filter_t *p_filter, block_t *p_block )
float
*
p_out
;
int
i
;
p_block_out
=
p_filter
->
pf_audio_buffer_new
(
p_filter
,
p_block
->
i_buffer
*
2
);
p_block_out
=
filter_NewAudioBuffer
(
p_filter
,
p_block
->
i_buffer
*
2
);
if
(
!
p_block_out
)
{
msg_Warn
(
p_filter
,
"can't get output buffer"
);
...
...
@@ -462,8 +459,7 @@ static block_t *S16toS24( filter_t *p_filter, block_t *p_block )
uint8_t
*
p_in
,
*
p_out
;
int
i
;
p_block_out
=
p_filter
->
pf_audio_buffer_new
(
p_filter
,
p_block
->
i_buffer
*
3
/
2
);
p_block_out
=
filter_NewAudioBuffer
(
p_filter
,
p_block
->
i_buffer
*
3
/
2
);
if
(
!
p_block_out
)
{
msg_Warn
(
p_filter
,
"can't get output buffer"
);
...
...
@@ -608,7 +604,7 @@ static block_t *S8toU16( filter_t *p_filter, block_t *p_block )
int
i
;
p_block_out
=
p_filter
->
pf_audio_buffer_new
(
p_filter
,
p_block
->
i_buffer
*
2
);
filter_NewAudioBuffer
(
p_filter
,
p_block
->
i_buffer
*
2
);
if
(
!
p_block_out
)
{
msg_Warn
(
p_filter
,
"can't get output buffer"
);
...
...
@@ -638,8 +634,7 @@ static block_t *U8toS16( filter_t *p_filter, block_t *p_block )
int16_t
*
p_out
;
int
i
;
p_block_out
=
p_filter
->
pf_audio_buffer_new
(
p_filter
,
p_block
->
i_buffer
*
2
);
p_block_out
=
filter_NewAudioBuffer
(
p_filter
,
p_block
->
i_buffer
*
2
);
if
(
!
p_block_out
)
{
msg_Warn
(
p_filter
,
"can't get output buffer"
);
...
...
@@ -670,8 +665,7 @@ static block_t *S8toS16( filter_t *p_filter, block_t *p_block )
int16_t
*
p_out
;
int
i
;
p_block_out
=
p_filter
->
pf_audio_buffer_new
(
p_filter
,
p_block
->
i_buffer
*
2
);
p_block_out
=
filter_NewAudioBuffer
(
p_filter
,
p_block
->
i_buffer
*
2
);
if
(
!
p_block_out
)
{
msg_Warn
(
p_filter
,
"can't get output buffer"
);
...
...
@@ -701,8 +695,7 @@ static block_t *U8toU16( filter_t *p_filter, block_t *p_block )
uint16_t
*
p_out
;
int
i
;
p_block_out
=
p_filter
->
pf_audio_buffer_new
(
p_filter
,
p_block
->
i_buffer
*
2
);
p_block_out
=
filter_NewAudioBuffer
(
p_filter
,
p_block
->
i_buffer
*
2
);
if
(
!
p_block_out
)
{
msg_Warn
(
p_filter
,
"can't get output buffer"
);
...
...
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