search for: dup_packet

Displaying 1 result from an estimated 1 matches for "dup_packet".

2004 Sep 22
3
copying an ogg stream
...nal file. here's what i am doing. (python-like pseudo-code). First i create copies of all packets in a page, store them in 'list'; i also save the granule-position of this page: foreach page in oggfile: g=get_granulepos(page) list=[] foreach packet in page: list.append(dup_packet(packet)) # creates a deep copy of packet then i write all pages but the last one to the output file (because, as i understand it, only the last packet has the correct granulepos; all other packets have a granulepos of -1). foreach packet in list[:-1]: # does NOT include the last packet!...