Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
d4582889
Commit
d4582889
authored
Feb 10, 2011
by
Justin Ruggles
Committed by
Mans Rullgard
Feb 10, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ac3enc: remove right shifting from lshift_tab() and make lshift unsigned.
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
0b1d291a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
ac3enc_fixed.c
libavcodec/ac3enc_fixed.c
+2
-6
No files found.
libavcodec/ac3enc_fixed.c
View file @
d4582889
...
...
@@ -286,19 +286,15 @@ static int log2_tab(int16_t *tab, int n)
* Left-shift each value in an array by a specified amount.
* @param tab input array
* @param n number of values in the array
* @param lshift left shift amount
. a negative value means right shift.
* @param lshift left shift amount
*/
static
void
lshift_tab
(
int16_t
*
tab
,
int
n
,
int
lshift
)
static
void
lshift_tab
(
int16_t
*
tab
,
int
n
,
unsigned
int
lshift
)
{
int
i
;
if
(
lshift
>
0
)
{
for
(
i
=
0
;
i
<
n
;
i
++
)
tab
[
i
]
<<=
lshift
;
}
else
if
(
lshift
<
0
)
{
lshift
=
-
lshift
;
for
(
i
=
0
;
i
<
n
;
i
++
)
tab
[
i
]
>>=
lshift
;
}
}
...
...
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