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
171966e2
Commit
171966e2
authored
Apr 22, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/audio_filter/converter/s16tofloat32swab.c: added an #ifdef HAVE_ALLOCA.
parent
58d2e718
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
modules/audio_filter/converter/s16tofloat32swab.c
modules/audio_filter/converter/s16tofloat32swab.c
+13
-1
No files found.
modules/audio_filter/converter/s16tofloat32swab.c
View file @
171966e2
...
...
@@ -3,7 +3,7 @@
* with endianness change
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: s16tofloat32swab.c,v 1.
8 2002/11/20 16:43:32 sam
Exp $
* $Id: s16tofloat32swab.c,v 1.
9 2003/04/22 22:25:09 gbazin
Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Henri Fallon <henri@videolan.org>
...
...
@@ -101,9 +101,15 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
float
*
p_out
=
(
float
*
)
p_out_buf
->
p_buffer
+
i
-
1
;
#ifdef HAVE_SWAB
# ifdef HAVE_ALLOCA
s16
*
p_swabbed
=
alloca
(
i
*
sizeof
(
s16
)
);
# else
s16
*
p_swabbed
=
malloc
(
i
*
sizeof
(
s16
)
);
# endif
swab
(
p_in_buf
->
p_buffer
,
(
void
*
)
p_swabbed
,
i
*
sizeof
(
s16
)
);
p_in
=
p_swabbed
+
i
-
1
;
#else
byte_t
p_tmp
[
2
];
p_in
=
(
s16
*
)
p_in_buf
->
p_buffer
+
i
-
1
;
...
...
@@ -121,6 +127,12 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
p_in
--
;
p_out
--
;
}
#ifdef HAVE_SWAB
# ifndef HAVE_ALLOCA
free
(
p_swabbed
);
# endif
#endif
p_out_buf
->
i_nb_samples
=
p_in_buf
->
i_nb_samples
;
p_out_buf
->
i_nb_bytes
=
p_in_buf
->
i_nb_bytes
*
2
;
}
...
...
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