Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mark Harris
Opus
Commits
f85bc8a2
Commit
f85bc8a2
authored
Feb 03, 2011
by
Jean-Marc Valin
Browse files
Oops, had inverted some tuning lines
parent
686bfe83
Changes
4
Hide whitespace changes
Inline
Side-by-side
Makefile.draft
View file @
f85bc8a2
...
...
@@ -18,7 +18,8 @@ cppflags-from-includes = $(addprefix -I,$(1))
ldflags-from-ldlibdirs
=
$(
addprefix
-L
,
$(1)
)
ldlibs-from-libs
=
$(
addprefix
-l
,
$(1)
)
CFLAGS
+=
-O2
-g
-Wall
-DOPUS_BUILD
-Drestrict
=
WARNINGS
=
-Wall
-W
-Wstrict-prototypes
-Wextra
-Wcast-align
-Wnested-externs
-Wshadow
-Wno-parentheses
-Wno-unused-parameter
-Wno-sign-compare
CFLAGS
+=
-O2
-g
$(WARNINGS)
-DOPUS_BUILD
-Drestrict
=
CFLAGS
+=
$(
call
cppflags-from-defines,
$(CDEFINES)
)
CFLAGS
+=
$(
call
cppflags-from-includes,
$(CINCLUDES)
)
...
...
@@ -59,7 +60,7 @@ VPATH = ./ \
test
# Variable definitions
LIB_NAME
=
lib
opus
LIB_NAME
=
opus
TARGET
=
$(LIBPREFIX)$(LIB_NAME)$(LIBSUFFIX)
SRCS_C
=
$(SILK_SOURCES)
$(CELT_SOURCES)
$(OPUS_SOURCES)
...
...
celt
@
ec6588ae
Subproject commit
ff4116ccb5e771c84c8963c954a595407a95391e
Subproject commit
ec6588ae149f82a182c73501abaf268e0b9a190b
src/opus_decoder.h
View file @
f85bc8a2
...
...
@@ -51,7 +51,7 @@ struct OpusDecoder {
#endif
};
inline
short
ADD_SAT16
(
a
,
b
)
{
inline
short
ADD_SAT16
(
short
a
,
short
b
)
{
int
sum
=
a
+
b
;
return
sum
>
32767
?
32767
:
sum
<
-
32768
?
-
32768
:
(
short
)
sum
;
};
...
...
src/opus_encoder.c
View file @
f85bc8a2
...
...
@@ -113,10 +113,10 @@ int opus_encode(OpusEncoder *st, const short *pcm, int frame_size,
if
(
st
->
bandwidth
==
BANDWIDTH_SUPERWIDEBAND
)
{
if
(
st
->
Fs
==
100
*
frame_size
)
{
/* 24 kHz, 10 ms */
st
->
silk_mode
.
bitRate
=
(
(
st
->
silk_mode
.
bitRate
+
8
000
-
(
1
-
st
->
use_vbr
)
*
7
000
)
*
2
)
/
3
;
st
->
silk_mode
.
bitRate
=
(
(
st
->
silk_mode
.
bitRate
+
12
000
-
(
1
-
st
->
use_vbr
)
*
10
000
)
*
2
)
/
3
;
}
else
{
/* 24 kHz, 20 ms */
st
->
silk_mode
.
bitRate
=
(
(
st
->
silk_mode
.
bitRate
+
12
000
-
(
1
-
st
->
use_vbr
)
*
10
000
)
*
2
)
/
3
;
st
->
silk_mode
.
bitRate
=
(
(
st
->
silk_mode
.
bitRate
+
8
000
-
(
1
-
st
->
use_vbr
)
*
7
000
)
*
2
)
/
3
;
}
}
else
{
if
(
st
->
Fs
==
100
*
frame_size
)
{
...
...
Write
Preview
Supports
Markdown
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