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
a1b8de5c
Commit
a1b8de5c
authored
Aug 18, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up L20 decoding
parent
236a2766
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
modules/codec/araw.c
modules/codec/araw.c
+6
-4
No files found.
modules/codec/araw.c
View file @
a1b8de5c
...
...
@@ -424,15 +424,17 @@ static void DecodeS20B( void *outp, const uint8_t *in, unsigned samples )
while
(
samples
>=
2
)
{
*
(
out
++
)
=
U32_AT
(
in
)
&
~
0xFFF
;
*
(
out
++
)
=
U32_AT
(
in
+
1
)
<<
12
;
in
+=
5
;
uint32_t
dw
=
U32_AT
(
in
);
in
+=
4
;
*
(
out
++
)
=
dw
&
~
0xFFF
;
*
(
out
++
)
=
(
dw
<<
20
)
|
(
*
in
<<
12
);
in
++
;
samples
-=
2
;
}
/* No U32_AT() for the last odd sample: avoid off-by-one overflow! */
if
(
samples
)
*
(
out
++
)
=
(
(
U16_AT
(
in
)
<<
16
)
|
(
in
[
2
]
<<
8
))
&
~
0xFFF
;
*
(
out
++
)
=
(
U16_AT
(
in
)
<<
16
)
|
((
in
[
2
]
&
0xF0
)
<<
8
)
;
}
static
int16_t
dat12tos16
(
uint16_t
y
)
...
...
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