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
68f1623b
Commit
68f1623b
authored
Jun 08, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a52: fix undefined left shift of negative value
parent
003af6b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/audio_filter/converter/a52tofloat32.c
modules/audio_filter/converter/a52tofloat32.c
+4
-4
No files found.
modules/audio_filter/converter/a52tofloat32.c
View file @
68f1623b
...
...
@@ -236,7 +236,7 @@ static void Interleave( sample_t *restrict p_out, const sample_t *restrict p_in,
for
(
unsigned
i
=
0
;
i
<
256
;
i
++
)
{
#ifdef LIBA52_FIXED
p_out
[
i
*
i_nb_channels
+
pi_chan_table
[
j
]]
=
p_in
[
j
*
256
+
i
]
<<
4
;
p_out
[
i
*
i_nb_channels
+
pi_chan_table
[
j
]]
=
((
uint32_t
)
p_in
[
j
*
256
+
i
])
<<
4
;
#else
p_out
[
i
*
i_nb_channels
+
pi_chan_table
[
j
]]
=
p_in
[
j
*
256
+
i
];
#endif
...
...
@@ -252,7 +252,7 @@ static void Duplicate( sample_t *restrict p_out, const sample_t *restrict p_in )
for
(
unsigned
i
=
256
;
i
--
;
)
{
#ifdef LIBA52_FIXED
sample_t
s
=
*
(
p_in
++
)
<<
4
;
sample_t
s
=
((
uint32_t
)
*
(
p_in
++
)
)
<<
4
;
#else
sample_t
s
=
*
(
p_in
++
);
#endif
...
...
@@ -272,8 +272,8 @@ static void Exchange( sample_t *restrict p_out, const sample_t *restrict p_in )
for
(
unsigned
i
=
0
;
i
<
256
;
i
++
)
{
#ifdef LIBA52_FIXED
*
p_out
++
=
*
p_first
++
<<
4
;
*
p_out
++
=
*
p_second
++
<<
4
;
*
p_out
++
=
((
uint32_t
)
*
p_first
++
)
<<
4
;
*
p_out
++
=
((
uint32_t
)
*
p_second
++
)
<<
4
;
#else
*
p_out
++
=
*
p_first
++
;
*
p_out
++
=
*
p_second
++
;
...
...
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