Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fdk-aac
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
fdk-aac
Commits
6ae54806
Commit
6ae54806
authored
Apr 20, 2016
by
Glenn Kasten
Committed by
Gerrit Code Review
Apr 20, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Left shift of negative int is undefined"
parents
34fb0535
4bd4510b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
25 deletions
+25
-25
libAACenc/src/metadata_compressor.cpp
libAACenc/src/metadata_compressor.cpp
+25
-25
No files found.
libAACenc/src/metadata_compressor.cpp
View file @
6ae54806
...
@@ -193,36 +193,36 @@ struct DRC_COMP {
...
@@ -193,36 +193,36 @@ struct DRC_COMP {
* Profile tables.
* Profile tables.
*/
*/
static
const
FIXP_DBL
tabMaxBoostThr
[]
=
{
static
const
FIXP_DBL
tabMaxBoostThr
[]
=
{
(
FIXP_DBL
)(
-
43
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
43
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
53
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
53
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
55
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
55
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
65
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
65
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
50
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
50
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
40
<<
METADATA_FRACT_BITS
)
(
FIXP_DBL
)(
int
)((
unsigned
)
-
40
<<
METADATA_FRACT_BITS
)
};
};
static
const
FIXP_DBL
tabBoostThr
[]
=
{
static
const
FIXP_DBL
tabBoostThr
[]
=
{
(
FIXP_DBL
)(
-
31
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
31
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
41
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
41
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
31
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
31
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
41
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
41
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
31
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
31
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
31
<<
METADATA_FRACT_BITS
)
(
FIXP_DBL
)(
int
)((
unsigned
)
-
31
<<
METADATA_FRACT_BITS
)
};
};
static
const
FIXP_DBL
tabEarlyCutThr
[]
=
{
static
const
FIXP_DBL
tabEarlyCutThr
[]
=
{
(
FIXP_DBL
)(
-
26
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
26
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
21
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
21
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
26
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
26
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
21
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
21
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
26
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
26
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
20
<<
METADATA_FRACT_BITS
)
(
FIXP_DBL
)(
int
)((
unsigned
)
-
20
<<
METADATA_FRACT_BITS
)
};
};
static
const
FIXP_DBL
tabCutThr
[]
=
{
static
const
FIXP_DBL
tabCutThr
[]
=
{
(
FIXP_DBL
)(
-
16
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
16
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
11
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
11
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
16
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
16
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
21
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
21
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
16
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
int
)((
unsigned
)
-
16
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
-
10
<<
METADATA_FRACT_BITS
)
(
FIXP_DBL
)(
int
)((
unsigned
)
-
10
<<
METADATA_FRACT_BITS
)
};
};
static
const
FIXP_DBL
tabMaxCutThr
[]
=
{
static
const
FIXP_DBL
tabMaxCutThr
[]
=
{
(
FIXP_DBL
)(
4
<<
METADATA_FRACT_BITS
),
(
FIXP_DBL
)(
4
<<
METADATA_FRACT_BITS
),
...
@@ -576,7 +576,7 @@ INT FDK_DRC_Generator_Initialize(
...
@@ -576,7 +576,7 @@ INT FDK_DRC_Generator_Initialize(
drcComp
->
channels
=
channelMapping
.
nChannels
;
drcComp
->
channels
=
channelMapping
.
nChannels
;
/* Init states. */
/* Init states. */
drcComp
->
smoothLevel
[
0
]
=
drcComp
->
smoothLevel
[
1
]
=
(
FIXP_DBL
)(
-
135
<<
METADATA_FRACT_BITS
);
drcComp
->
smoothLevel
[
0
]
=
drcComp
->
smoothLevel
[
1
]
=
(
FIXP_DBL
)(
int
)((
unsigned
)
-
135
<<
METADATA_FRACT_BITS
);
FDKmemclear
(
drcComp
->
smoothGain
,
sizeof
(
drcComp
->
smoothGain
));
FDKmemclear
(
drcComp
->
smoothGain
,
sizeof
(
drcComp
->
smoothGain
));
FDKmemclear
(
drcComp
->
holdCnt
,
sizeof
(
drcComp
->
holdCnt
));
FDKmemclear
(
drcComp
->
holdCnt
,
sizeof
(
drcComp
->
holdCnt
));
...
...
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