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
a54c03c5
Commit
a54c03c5
authored
May 06, 2013
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lpcm decoding on little endian
Close #8529
parent
af3b1269
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
modules/codec/lpcm.c
modules/codec/lpcm.c
+8
-0
No files found.
modules/codec/lpcm.c
View file @
a54c03c5
...
@@ -1054,7 +1054,11 @@ static void BdExtract( block_t *p_aout_buffer, block_t *p_block,
...
@@ -1054,7 +1054,11 @@ static void BdExtract( block_t *p_aout_buffer, block_t *p_block,
uint8_t
*
p_dst
=
p_aout_buffer
->
p_buffer
;
uint8_t
*
p_dst
=
p_aout_buffer
->
p_buffer
;
while
(
i_frame_length
>
0
)
while
(
i_frame_length
>
0
)
{
{
#ifdef WORDS_BIGENDIAN
memcpy
(
p_dst
,
p_src
,
i_channels
*
i_bits
/
8
);
memcpy
(
p_dst
,
p_src
,
i_channels
*
i_bits
/
8
);
#else
swab
(
p_dst
,
p_src
,
i_channels
*
i_bits
/
8
);
#endif
p_src
+=
(
i_channels
+
i_channels_padding
)
*
i_bits
/
8
;
p_src
+=
(
i_channels
+
i_channels_padding
)
*
i_bits
/
8
;
p_dst
+=
(
i_channels
+
0
)
*
i_bits
/
8
;
p_dst
+=
(
i_channels
+
0
)
*
i_bits
/
8
;
i_frame_length
--
;
i_frame_length
--
;
...
@@ -1062,7 +1066,11 @@ static void BdExtract( block_t *p_aout_buffer, block_t *p_block,
...
@@ -1062,7 +1066,11 @@ static void BdExtract( block_t *p_aout_buffer, block_t *p_block,
}
}
else
else
{
{
#ifdef WORDS_BIGENDIAN
memcpy
(
p_aout_buffer
->
p_buffer
,
p_block
->
p_buffer
,
p_block
->
i_buffer
);
memcpy
(
p_aout_buffer
->
p_buffer
,
p_block
->
p_buffer
,
p_block
->
i_buffer
);
#else
swab
(
p_block
->
p_buffer
,
p_aout_buffer
->
p_buffer
,
p_block
->
i_buffer
);
#endif
}
}
}
}
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