Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
mediastreamer2
Commits
fa223109
Commit
fa223109
authored
Apr 01, 2014
by
jehan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix compilation warnings
parent
9753c73f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
17 deletions
+12
-17
configure.ac
configure.ac
+11
-4
src/audiofilters/msconf.c
src/audiofilters/msconf.c
+1
-1
src/audiofilters/speexec.c
src/audiofilters/speexec.c
+0
-1
src/videofilters/theora.c
src/videofilters/theora.c
+0
-10
src/voip/bitratedriver.c
src/voip/bitratedriver.c
+0
-1
No files found.
configure.ac
View file @
fa223109
...
...
@@ -4,6 +4,10 @@ AC_INIT([mediastreamer],[2.10.0])
AC_MSG_NOTICE([$PACKAGE_NAME-$PACKAGE_VERSION A mediastreaming library for telephony application.])
AC_MSG_NOTICE([licensed under the terms of the General Public License (GPL)])
dnl don't put anythingelse before AC_PROG_CC unless checking if macro still work for clang
AC_PROG_CXX(["xcrun clang++" g++])
AC_PROG_CC(["xcrun clang" gcc])
AC_PROG_OBJC(["xcrun clang" gcc])
AC_CANONICAL_SYSTEM
dnl Source packaging numbers
...
...
@@ -52,6 +56,13 @@ AC_ARG_ENABLE(strict,
)
CFLAGS="-DORTP_INET6 $CFLAGS "
#for clang
case $CC in
*clang*)
CFLAGS="$CFLAGS -Qunused-arguments"
;;
esac
dnl enable ipv6 support
AC_ARG_ENABLE(ipv6,
...
...
@@ -78,10 +89,6 @@ AC_ARG_ENABLE(ntp-timestamp,
[ntptimestamp=false]
)
dnl Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_OBJC
AC_CONFIG_MACRO_DIR([m4])
LT_INIT([win32-dll shared disable-static])
...
...
src/audiofilters/msconf.c
View file @
fa223109
...
...
@@ -42,7 +42,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define CONF_MAX_PINS 128
#endif
static
const
float
max_e
=
(
float
)
32767
*
32767
;
static
const
float
coef
=
(
float
)
0
.
01
;
typedef
struct
Channel
{
...
...
src/audiofilters/speexec.c
View file @
fa223109
...
...
@@ -46,7 +46,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define EC_DUMP_PREFIX "/dynamic/tests"
#endif
static
const
float
smooth_factor
=
0
.
05
;
static
const
int
framesize
=
64
;
static
const
int
flow_control_interval_ms
=
5000
;
...
...
src/videofilters/theora.c
View file @
fa223109
...
...
@@ -181,11 +181,6 @@ static inline void payload_header_set(uint8_t *buf, uint32_t ident, uint8_t ft,
*
((
uint32_t
*
)
buf
)
=
htonl
(
tmp
);
}
static
inline
uint32_t
payload_header_get_ident
(
uint8_t
*
buf
){
uint32_t
*
tmp
=
(
uint32_t
*
)
buf
;
return
(
ntohl
(
*
tmp
)
>>
8
)
&
0xFFFFFF
;
}
static
inline
uint32_t
payload_header_get_tdt
(
uint8_t
*
buf
){
uint32_t
*
tmp
=
(
uint32_t
*
)
buf
;
return
((
ntohl
(
*
tmp
))
>>
4
)
&
0x3
;
...
...
@@ -196,11 +191,6 @@ static inline uint32_t payload_header_get_ft(uint8_t *buf){
return
((
ntohl
(
*
tmp
))
>>
6
)
&
0x3
;
}
static
inline
uint32_t
payload_header_get_pkts
(
uint8_t
*
buf
){
uint32_t
*
tmp
=
(
uint32_t
*
)
buf
;
return
ntohl
(
*
tmp
)
&
0xf
;
}
static
int
create_packed_conf
(
EncState
*
s
){
ogg_packet
p
;
theora_state
*
tstate
=&
s
->
tstate
;
...
...
src/voip/bitratedriver.c
View file @
fa223109
...
...
@@ -193,7 +193,6 @@ MSBitrateDriver *ms_audio_bitrate_driver_new(MSFilter *encoder){
}
static
const
int
min_video_bitrate
=
64000
;
static
const
float
increase_ramp
=
1
.
1
;
typedef
struct
_MSAVBitrateDriver
{
MSBitrateDriver
parent
;
...
...
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