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
Xiph.Org
Icecast-Server
Commits
5b512da3
Commit
5b512da3
authored
Sep 04, 2016
by
Philipp Schafft
🦁
Browse files
Cleanup: corrected debug output of Opus support
parent
0d7f81b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/format_opus.c
View file @
5b512da3
...
@@ -58,16 +58,6 @@ static void __handle_header_opushead(ogg_state_t *ogg_info, ogg_packet *packet)
...
@@ -58,16 +58,6 @@ static void __handle_header_opushead(ogg_state_t *ogg_info, ogg_packet *packet)
return
;
/* Invalid OpusHead */
return
;
/* Invalid OpusHead */
}
}
ICECAST_LOG_DEBUG
(
"Opus Header: len=%lu, data=%i,%i %i,%i %i,%i %i,%i %i,%i %i,%i %i,%i %i,%i %i,%i %i"
,
(
unsigned
long
int
)
packet
->
bytes
,
packet
->
packet
[
0
],
packet
->
packet
[
1
],
packet
->
packet
[
2
],
packet
->
packet
[
3
],
packet
->
packet
[
4
],
packet
->
packet
[
5
],
packet
->
packet
[
6
],
packet
->
packet
[
7
],
packet
->
packet
[
8
],
packet
->
packet
[
9
],
packet
->
packet
[
10
],
packet
->
packet
[
11
],
packet
->
packet
[
12
],
packet
->
packet
[
13
],
packet
->
packet
[
14
],
packet
->
packet
[
15
],
packet
->
packet
[
16
],
packet
->
packet
[
17
],
packet
->
packet
[
18
]
);
if
((
packet
->
packet
[
8
]
&
0xF0
)
!=
0
)
{
if
((
packet
->
packet
[
8
]
&
0xF0
)
!=
0
)
{
ICECAST_LOG_WARN
(
"Bad Opus header: bad header version, expected major 0, got %i"
,
(
int
)
packet
->
packet
[
8
]);
ICECAST_LOG_WARN
(
"Bad Opus header: bad header version, expected major 0, got %i"
,
(
int
)
packet
->
packet
[
8
]);
return
;
/* Invalid OpusHead Version */
return
;
/* Invalid OpusHead Version */
...
@@ -180,8 +170,10 @@ static void __handle_header(ogg_state_t *ogg_info,
...
@@ -180,8 +170,10 @@ static void __handle_header(ogg_state_t *ogg_info,
}
}
if
(
strncmp
((
const
char
*
)
packet
->
packet
,
"OpusHead"
,
8
)
==
0
)
{
if
(
strncmp
((
const
char
*
)
packet
->
packet
,
"OpusHead"
,
8
)
==
0
)
{
ICECAST_LOG_DEBUG
(
"Got Opus header: OpusHead"
);
__handle_header_opushead
(
ogg_info
,
packet
);
__handle_header_opushead
(
ogg_info
,
packet
);
}
else
if
(
strncmp
((
const
char
*
)
packet
->
packet
,
"OpusTags"
,
8
)
==
0
)
{
}
else
if
(
strncmp
((
const
char
*
)
packet
->
packet
,
"OpusTags"
,
8
)
==
0
)
{
ICECAST_LOG_DEBUG
(
"Got Opus header: OpusTags"
);
__handle_header_opustags
(
ogg_info
,
packet
,
plugin
);
__handle_header_opustags
(
ogg_info
,
packet
,
plugin
);
}
else
{
}
else
{
ICECAST_LOG_DEBUG
(
"Unknown header or data."
);
ICECAST_LOG_DEBUG
(
"Unknown header or data."
);
...
...
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