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
6a92f8b3
Commit
6a92f8b3
authored
Mar 31, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation
parent
d4db3a21
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
modules/codec/faad.c
modules/codec/faad.c
+7
-5
No files found.
modules/codec/faad.c
View file @
6a92f8b3
...
...
@@ -47,7 +47,7 @@ vlc_module_end();
* Local prototypes
****************************************************************************/
static
aout_buffer_t
*
DecodeBlock
(
decoder_t
*
,
block_t
**
);
static
void
DoReordering
(
uint32_t
*
,
uint32_t
*
,
int
,
int
,
uint32_t
*
);
static
void
DoReordering
(
uint32_t
,
uint32_t
*
,
uint32_t
*
,
int
,
int
,
uint32_t
*
);
#define MAX_CHANNEL_POSITIONS 9
...
...
@@ -422,7 +422,8 @@ static aout_buffer_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
p_out
->
end_date
=
aout_DateIncrement
(
&
p_sys
->
date
,
(
frame
.
samples
/
frame
.
channels
)
*
p_sys
->
i_input_rate
/
INPUT_RATE_DEFAULT
);
DoReordering
(
(
uint32_t
*
)
p_out
->
p_buffer
,
samples
,
DoReordering
(
p_dec
->
p_libvlc
->
i_cpu
,
(
uint32_t
*
)
p_out
->
p_buffer
,
samples
,
frame
.
samples
/
frame
.
channels
,
frame
.
channels
,
p_sys
->
pi_channel_positions
);
...
...
@@ -457,8 +458,9 @@ static void Close( vlc_object_t *p_this )
* DoReordering: do some channel re-ordering (the ac3 channel order is
* different from the aac one).
*****************************************************************************/
static
void
DoReordering
(
uint32_t
*
p_out
,
uint32_t
*
p_in
,
int
i_samples
,
int
i_nb_channels
,
uint32_t
*
pi_chan_positions
)
static
void
DoReordering
(
uint32_t
i_cpu
,
uint32_t
*
p_out
,
uint32_t
*
p_in
,
int
i_samples
,
int
i_nb_channels
,
uint32_t
*
pi_chan_positions
)
{
int
pi_chan_table
[
MAX_CHANNEL_POSITIONS
];
int
i
,
j
,
k
;
...
...
@@ -477,7 +479,7 @@ static void DoReordering( uint32_t *p_out, uint32_t *p_in, int i_samples,
}
/* Do the actual reordering */
if
(
p_dec
->
p_libvlc
->
i_cpu
&
CPU_CAPABILITY_FPU
)
if
(
i_cpu
&
CPU_CAPABILITY_FPU
)
for
(
i
=
0
;
i
<
i_samples
;
i
++
)
for
(
j
=
0
;
j
<
i_nb_channels
;
j
++
)
p_out
[
i
*
i_nb_channels
+
pi_chan_table
[
j
]]
=
...
...
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