Fix handling of truncated ogg packets.
This commit is contained in:
parent
883bd8e556
commit
5170dbf3ee
1 changed files with 1 additions and 1 deletions
|
@ -527,7 +527,7 @@ int main(int argc, char **argv)
|
|||
last_granule = page_granule;
|
||||
/*Extract all available packets*/
|
||||
packet_no=0;
|
||||
while (!eos && ogg_stream_packetout(&os, &op) == 1)
|
||||
while (!eos && ogg_stream_packetout(&os, &op) == 1 && op.bytes>=8)
|
||||
{
|
||||
if (!memcmp(op.packet, "CELT ", 8)) {
|
||||
celt_serialno = os.serialno;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue