Fixes for two bugs relating to short files in vorbisfile:
authorMike Smith <msmith@xiph.org>
Mon, 12 Nov 2001 13:41:10 +0000 (13:41 +0000)
committerMike Smith <msmith@xiph.org>
Mon, 12 Nov 2001 13:41:10 +0000 (13:41 +0000)
commit244da0362390b528795f30bae3b62a3ad6b29821
tree7fe5062d74a420ac3d55852c90cb2e38e5a14654
parent15e64d7c04a419cd280f015feb340eed38f85d39
Fixes for two bugs relating to short files in vorbisfile:
 1) _get_prev_page could get stuck in an infinite loop trying to seek to < 0
 2) _process_packet could return OV_EOF when there were valid packets awaiting
    decode.

Remaining problem: on my test file (739 samples long), seeking_example fails
the pcm exact seeking test.

svn path=/trunk/vorbis/; revision=2350
lib/vorbisfile.c