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,6 +54,7 @@ static refbuf_t *process_flac_page (ogg_state_t *ogg_info, ogg_codec_t *codec, o
|
||||
}
|
||||
|
||||
while (ogg_stream_packetout(&codec->os, &packet)) {
|
||||
if (packet.bytes >= 1) {
|
||||
int type = packet.packet[0];
|
||||
|
||||
if (type == 0xFF) {
|
||||
@ -65,6 +66,7 @@ static refbuf_t *process_flac_page (ogg_state_t *ogg_info, ogg_codec_t *codec, o
|
||||
continue;
|
||||
if (type >= 0x81 && type <= 0xFE)
|
||||
continue;
|
||||
}
|
||||
|
||||
ogg_info->error = 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user