Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
d28b2ffd
Commit
d28b2ffd
authored
Dec 25, 2012
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix
2c22b194
: do not lose block_t information
parent
5596a281
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
modules/audio_filter/converter/format.c
modules/audio_filter/converter/format.c
+9
-0
No files found.
modules/audio_filter/converter/format.c
View file @
d28b2ffd
...
...
@@ -90,6 +90,7 @@ static block_t *U8toS16(filter_t *filter, block_t *bsrc)
if
(
unlikely
(
bdst
==
NULL
))
goto
out
;
block_CopyProperties
(
bdst
,
bsrc
);
uint8_t
*
src
=
(
uint8_t
*
)
bsrc
->
p_buffer
;
int16_t
*
dst
=
(
int16_t
*
)
bdst
->
p_buffer
;
for
(
size_t
i
=
bsrc
->
i_buffer
;
i
--
;)
...
...
@@ -106,6 +107,7 @@ static block_t *U8toFl32(filter_t *filter, block_t *bsrc)
if
(
unlikely
(
bdst
==
NULL
))
goto
out
;
block_CopyProperties
(
bdst
,
bsrc
);
uint8_t
*
src
=
(
uint8_t
*
)
bsrc
->
p_buffer
;
float
*
dst
=
(
float
*
)
bdst
->
p_buffer
;
for
(
size_t
i
=
bsrc
->
i_buffer
;
i
--
;)
...
...
@@ -122,6 +124,7 @@ static block_t *U8toS32(filter_t *filter, block_t *bsrc)
if
(
unlikely
(
bdst
==
NULL
))
goto
out
;
block_CopyProperties
(
bdst
,
bsrc
);
uint8_t
*
src
=
(
uint8_t
*
)
bsrc
->
p_buffer
;
int32_t
*
dst
=
(
int32_t
*
)
bdst
->
p_buffer
;
for
(
size_t
i
=
bsrc
->
i_buffer
;
i
--
;)
...
...
@@ -138,6 +141,7 @@ static block_t *U8toFl64(filter_t *filter, block_t *bsrc)
if
(
unlikely
(
bdst
==
NULL
))
goto
out
;
block_CopyProperties
(
bdst
,
bsrc
);
uint8_t
*
src
=
(
uint8_t
*
)
bsrc
->
p_buffer
;
double
*
dst
=
(
double
*
)
bdst
->
p_buffer
;
for
(
size_t
i
=
bsrc
->
i_buffer
;
i
--
;)
...
...
@@ -168,6 +172,7 @@ static block_t *S16toFl32(filter_t *filter, block_t *bsrc)
if
(
unlikely
(
bdst
==
NULL
))
goto
out
;
block_CopyProperties
(
bdst
,
bsrc
);
int16_t
*
src
=
(
int16_t
*
)
bsrc
->
p_buffer
;
float
*
dst
=
(
float
*
)
bdst
->
p_buffer
;
for
(
size_t
i
=
bsrc
->
i_buffer
/
2
;
i
--
;)
...
...
@@ -195,6 +200,7 @@ static block_t *S16toS32(filter_t *filter, block_t *bsrc)
if
(
unlikely
(
bdst
==
NULL
))
goto
out
;
block_CopyProperties
(
bdst
,
bsrc
);
int16_t
*
src
=
(
int16_t
*
)
bsrc
->
p_buffer
;
int32_t
*
dst
=
(
int32_t
*
)
bdst
->
p_buffer
;
for
(
int
i
=
bsrc
->
i_buffer
/
2
;
i
--
;)
...
...
@@ -211,6 +217,7 @@ static block_t *S16toFl64(filter_t *filter, block_t *bsrc)
if
(
unlikely
(
bdst
==
NULL
))
goto
out
;
block_CopyProperties
(
bdst
,
bsrc
);
int16_t
*
src
=
(
int16_t
*
)
bsrc
->
p_buffer
;
float
*
dst
=
(
float
*
)
bdst
->
p_buffer
;
for
(
size_t
i
=
bsrc
->
i_buffer
/
2
;
i
--
;)
...
...
@@ -296,6 +303,7 @@ static block_t *Fl32toFl64(filter_t *filter, block_t *bsrc)
if
(
unlikely
(
bdst
==
NULL
))
goto
out
;
block_CopyProperties
(
bdst
,
bsrc
);
float
*
src
=
(
float
*
)
bsrc
->
p_buffer
;
double
*
dst
=
(
double
*
)
bdst
->
p_buffer
;
for
(
size_t
i
=
bsrc
->
i_buffer
/
4
;
i
--
;)
...
...
@@ -348,6 +356,7 @@ static block_t *S32toFl64(filter_t *filter, block_t *bsrc)
if
(
unlikely
(
bdst
==
NULL
))
goto
out
;
block_CopyProperties
(
bdst
,
bsrc
);
int32_t
*
src
=
(
int32_t
*
)
bsrc
->
p_buffer
;
double
*
dst
=
(
double
*
)
bdst
->
p_buffer
;
for
(
size_t
i
=
bsrc
->
i_buffer
/
4
;
i
--
;)
...
...
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