mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Fix: Check for packet.bytes >= 1
This commit is contained in:
parent
109adf8368
commit
65f7f559e4
@ -54,18 +54,20 @@ static refbuf_t *process_flac_page (ogg_state_t *ogg_info, ogg_codec_t *codec, o
|
|||||||
}
|
}
|
||||||
|
|
||||||
while (ogg_stream_packetout(&codec->os, &packet)) {
|
while (ogg_stream_packetout(&codec->os, &packet)) {
|
||||||
int type = packet.packet[0];
|
if (packet.bytes >= 1) {
|
||||||
|
int type = packet.packet[0];
|
||||||
|
|
||||||
if (type == 0xFF) {
|
if (type == 0xFF) {
|
||||||
codec->headers = 0;
|
codec->headers = 0;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (type >= 1 && type <= 0x7E)
|
||||||
|
continue;
|
||||||
|
if (type >= 0x81 && type <= 0xFE)
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type >= 1 && type <= 0x7E)
|
|
||||||
continue;
|
|
||||||
if (type >= 0x81 && type <= 0xFE)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
ogg_info->error = 1;
|
ogg_info->error = 1;
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user