1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

Cleanup: Codestyle

This commit is contained in:
Philipp Schafft 2022-03-15 22:12:18 +00:00
parent 4dcea865c4
commit 109adf8368

View File

@ -45,36 +45,40 @@ static refbuf_t *process_flac_page (ogg_state_t *ogg_info, ogg_codec_t *codec, o
{
refbuf_t * refbuf;
if (codec->headers)
{
if (codec->headers) {
ogg_packet packet;
if (ogg_stream_pagein (&codec->os, page) < 0)
{
if (ogg_stream_pagein(&codec->os, page) < 0) {
ogg_info->error = 1;
return NULL;
}
while (ogg_stream_packetout (&codec->os, &packet))
{
while (ogg_stream_packetout(&codec->os, &packet)) {
int type = packet.packet[0];
if (type == 0xFF)
{
if (type == 0xFF) {
codec->headers = 0;
break;
}
if (type >= 1 && type <= 0x7E)
continue;
if (type >= 0x81 && type <= 0xFE)
continue;
ogg_info->error = 1;
return NULL;
}
if (codec->headers)
{
if (codec->headers) {
format_ogg_attach_header(ogg_info, page);
return NULL;
}
}
refbuf = make_refbuf_with_page(page);
return refbuf;
}