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
84d7b276
Commit
84d7b276
authored
Mar 25, 2014
by
Tristan Matthews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lpcm bd: fix 24 bit stereo decoding
Fixes #10265
parent
32abf2d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
modules/codec/lpcm.c
modules/codec/lpcm.c
+6
-4
No files found.
modules/codec/lpcm.c
View file @
84d7b276
...
...
@@ -1117,10 +1117,12 @@ static void BdExtract( block_t *p_aout_buffer, block_t *p_block,
if
(
i_bits
==
16
)
{
swab
(
p_src
,
p_dst
,
(
i_channels
+
i_channels_padding
)
*
i_bits
/
8
);
}
else
{
p_dst
[
0
]
=
0
;
p_dst
[
1
]
=
p_src
[
2
];
p_dst
[
2
]
=
p_src
[
1
];
p_dst
[
3
]
=
p_src
[
0
];
for
(
unsigned
i
=
0
;
i
<
i_channels
;
++
i
)
{
p_dst
[
i
*
4
]
=
0
;
p_dst
[
1
+
(
i
*
4
)]
=
p_src
[
2
+
(
i
*
3
)];
p_dst
[
2
+
(
i
*
4
)]
=
p_src
[
1
+
(
i
*
3
)];
p_dst
[
3
+
(
i
*
4
)]
=
p_src
[
i
*
3
];
}
}
#endif
p_src
+=
(
i_channels
+
i_channels_padding
)
*
i_bits
/
8
;
...
...
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