Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Commit [733877] Maximize Restore History

Properly initialize the packetno field when returning header packets,

and start counting data packet sequence numbers with 3 instead of zero
so that all the ogg packets come out of the encoder with the same
packetno fields they would have in coming out of an Ogg file (as read by
libogg, anyway).

Previously data packets started counting from zero, and the packetno
field of the returned header packets was uninitialized.

We had two choices in resolving this. One was just to add 3 to the
vorbis_dsp_state and/or vorbis_block sequence field when writing it to
the ogg_packet packetno field. The other is to actually keep the
packetno in the internal sequence fields. I chose the later based on the
fact that this same field gets set directly from the ogg_packet packetno
on decode, so things are consistent.

git-svn-id: http://svn.xiph.org/trunk/vorbis@9513 0101bb08-14d6-0310-b084-bc0e0c8e3800

giles giles 2005-06-26

changed lib/block.c
changed lib/info.c
lib/block.c Diff Switch to side-by-side view
Loading...
lib/info.c Diff Switch to side-by-side view
Loading...