Displaying 1 result from an estimated 1 matches for "e_o_f".
Did you mean:
e_o_s
2004 Sep 22
3
copying an ogg stream
...correct granulepos; all
other packets have a granulepos of -1).
foreach packet in list[:-1]: # does NOT include the last packet!
packet.granulepos=-1
packet.packetno=global_packetno++
write_packet(packet)
now i write the last packet (this is also the place where i would set
e_o_f...):
packet=list[len(list)-1]
packet.granulepos=g
packet.packetno=global_packetno++
write_packet(packet)
the write_packet function looks like this:
def write_packet(packet):
ogg_stream_packetin(os, packet)
ogg_page page;
while (ogg_stream_pageout(os, page)):
fwrite(p...