Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
b1547a78
Commit
b1547a78
authored
16 years ago
by
Vitor Sessak
Browse files
Options
Downloads
Patches
Plain Diff
Remove cast, now tables are signed.
Originally committed as revision 15252 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
fc1d3e00
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/mace.c
+4
-4
4 additions, 4 deletions
libavcodec/mace.c
with
4 additions
and
4 deletions
libavcodec/mace.c
+
4
−
4
View file @
b1547a78
...
@@ -260,12 +260,12 @@ static inline int16_t mace_broken_clip_int16(int n)
...
@@ -260,12 +260,12 @@ static inline int16_t mace_broken_clip_int16(int n)
static
void
chomp3
(
ChannelData
*
ctx
,
int16_t
*
output
,
uint8_t
val
,
static
void
chomp3
(
ChannelData
*
ctx
,
int16_t
*
output
,
uint8_t
val
,
const
uint16_t
tab1
[],
const
uint16_t
tab1
[],
const
u
int16_t
*
tab2
,
int
tab2_stride
,
const
int16_t
*
tab2
,
int
tab2_stride
,
uint32_t
numChannels
)
uint32_t
numChannels
)
{
{
short
current
;
short
current
;
current
=
(
short
)
tab2
[((
ctx
->
index
&
0x7f0
)
>>
4
)
*
tab2_stride
+
val
];
current
=
tab2
[((
ctx
->
index
&
0x7f0
)
>>
4
)
*
tab2_stride
+
val
];
current
=
mace_broken_clip_int16
(
current
+
ctx
->
lev
);
current
=
mace_broken_clip_int16
(
current
+
ctx
->
lev
);
...
@@ -277,12 +277,12 @@ static void chomp3(ChannelData *ctx, int16_t *output, uint8_t val,
...
@@ -277,12 +277,12 @@ static void chomp3(ChannelData *ctx, int16_t *output, uint8_t val,
static
void
chomp6
(
ChannelData
*
ctx
,
int16_t
*
output
,
uint8_t
val
,
static
void
chomp6
(
ChannelData
*
ctx
,
int16_t
*
output
,
uint8_t
val
,
const
uint16_t
tab1
[],
const
uint16_t
tab1
[],
const
u
int16_t
*
tab2
,
int
tab2_stride
,
const
int16_t
*
tab2
,
int
tab2_stride
,
uint32_t
numChannels
)
uint32_t
numChannels
)
{
{
short
current
;
short
current
;
current
=
(
short
)
tab2
[((
ctx
->
index
&
0x7f0
)
>>
4
)
*
tab2_stride
+
val
];
current
=
tab2
[((
ctx
->
index
&
0x7f0
)
>>
4
)
*
tab2_stride
+
val
];
if
((
ctx
->
previous
^
current
)
>=
0
)
{
if
((
ctx
->
previous
^
current
)
>=
0
)
{
ctx
->
factor
=
FFMIN
(
ctx
->
factor
+
506
,
32767
);
ctx
->
factor
=
FFMIN
(
ctx
->
factor
+
506
,
32767
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment