libogg documentation |
libogg version 1.26 - 20010527 |
declared in "ogg/ogg.h";
This function attempts to assemble a raw data packet and returns it without advancing decoding.
In a typical situation, this would be called speculatively after ogg_stream_pagein() to check the packet contents before handing it off to a codec for decompression. To advance page decoding and remove the packet from the sync structure, call ogg_stream_packetout().
int ogg_stream_packetpeek(ogg_stream_state *os,ogg_packet *op); |
- -1 if there's no packet available due to lost sync or a hole in the data.
- 1 if a packet is available.
copyright © 2001 xiph.org |
|
libogg documentation |
libogg version 1.26 - 20010527 |