Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Opus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
Opus
Commits
59a93ab1
Commit
59a93ab1
authored
13 years ago
by
Christian Hoene
Committed by
Jean-Marc Valin
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixes some compiler warnings
parent
3596fedb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
libcelt/float_cast.h
+12
-13
12 additions, 13 deletions
libcelt/float_cast.h
silk/silk_enc_API.c
+0
-1
0 additions, 1 deletion
silk/silk_enc_API.c
src/test_opus.c
+1
-1
1 addition, 1 deletion
src/test_opus.c
with
13 additions
and
15 deletions
libcelt/float_cast.h
+
12
−
13
View file @
59a93ab1
...
@@ -59,23 +59,22 @@
...
@@ -59,23 +59,22 @@
*/
*/
#if (HAVE_LRINTF)
#if (HAVE_LRINTF)
/*#if 0*/
/* These defines enable functionality introduced with the 1999 ISO C
/* These defines enable functionality introduced with the 1999 ISO C
** standard. They must be defined before the inclusion of math.h to
** standard. They must be defined before the inclusion of math.h to
** engage them. If optimisation is enabled, these functions will be
** engage them. If optimisation is enabled, these functions will be
** inlined. With optimisation switched off, you have to link in the
** inlined. With optimisation switched off, you have to link in the
** maths library using -lm.
** maths library using -lm.
*/
*/
#define _ISOC9X_SOURCE 1
#define _ISOC9X_SOURCE 1
#define _ISOC99_SOURCE 1
#define _ISOC99_SOURCE 1
#define __USE_ISOC9X 1
#define __USE_ISOC9X 1
#define __USE_ISOC99 1
#define __USE_ISOC99 1
#include
<math.h>
#include
<math.h>
#define float2int(x) lrintf(x)
#define float2int(x) lrintf(x)
#elif (defined(HAVE_LRINT))
#elif (defined(HAVE_LRINT))
...
...
This diff is collapsed.
Click to expand it.
silk/silk_enc_API.c
+
0
−
1
View file @
59a93ab1
...
@@ -138,7 +138,6 @@ SKP_int silk_Encode(
...
@@ -138,7 +138,6 @@ SKP_int silk_Encode(
SKP_int
speech_act_thr_for_switch_Q8
;
SKP_int
speech_act_thr_for_switch_Q8
;
SKP_int32
TargetRate_bps
,
MStargetRates_bps
[
2
],
channelRate_bps
,
LBRR_symbol
;
SKP_int32
TargetRate_bps
,
MStargetRates_bps
[
2
],
channelRate_bps
,
LBRR_symbol
;
silk_encoder
*
psEnc
=
(
silk_encoder
*
)
encState
;
silk_encoder
*
psEnc
=
(
silk_encoder
*
)
encState
;
SKP_int
MS_predictorIx
[
2
]
=
{
0
};
SKP_int16
buf
[
MAX_FRAME_LENGTH_MS
*
MAX_API_FS_KHZ
];
SKP_int16
buf
[
MAX_FRAME_LENGTH_MS
*
MAX_API_FS_KHZ
];
/* Check values in encoder control structure */
/* Check values in encoder control structure */
...
...
This diff is collapsed.
Click to expand it.
src/test_opus.c
+
1
−
1
View file @
59a93ab1
...
@@ -112,7 +112,7 @@ int main(int argc, char *argv[])
...
@@ -112,7 +112,7 @@ int main(int argc, char *argv[])
int
bandwidth
=-
1
;
int
bandwidth
=-
1
;
const
char
*
bandwidth_string
;
const
char
*
bandwidth_string
;
int
write_samples
;
int
write_samples
;
int
lost
,
lost_prev
=
1
;
int
lost
=
0
,
lost_prev
=
1
;
int
toggle
=
0
;
int
toggle
=
0
;
int
enc_final_range
[
2
];
int
enc_final_range
[
2
];
int
encode_only
=
0
,
decode_only
=
0
;
int
encode_only
=
0
,
decode_only
=
0
;
...
...
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