Commit tterribe's port of Tremor r17541:
authorMonty <xiphmont@xiph.org>
Sat, 23 Oct 2010 10:34:24 +0000 (10:34 +0000)
committerMonty <xiphmont@xiph.org>
Sat, 23 Oct 2010 10:34:24 +0000 (10:34 +0000)
commit5fb866e8f3feae2ca9a0742312c5a6fa41627ef8
tree17899e4990b5397dbb4742dfc97b8d8aea6493fc
parenta7ebe8070c615b757f6d1f5ad878d3fc81e37125
Commit tterribe's port of Tremor r17541:
Harden the code that trims the last packet of a stream; it was
possible to game the granpos such that the trim code would try to
rewind more samples than were actually available in storage.

Also, fix/eliminate two printf warnings in seeking_example extension.

svn path=/trunk/vorbis/; revision=17561
examples/seeking_example.c
lib/block.c