vorbisfile has a flaw where a bad link is not initialized [proper
authorMonty <xiphmont@xiph.org>
Tue, 2 Sep 2003 04:39:26 +0000 (04:39 +0000)
committerMonty <xiphmont@xiph.org>
Tue, 2 Sep 2003 04:39:26 +0000 (04:39 +0000)
commit1f870a8b10b457786167705479c40ac25c1b67f7
treedc2949fc13138b95272dd70d40a1c7280f8290d4
parent2c1a192fa206c806c1abf724aeff840125fac788
vorbisfile has a flaw where a bad link is not initialized [proper
behavior], but it would attempt to initialize and play that link
anyway, getting a segfault.  The easiest way to deal was to improve
libvorbis's error checking on dsp initialization if an app (in this
case, vorbisfile) tries to call init on a blank vorbis_info structure.

read and seek calls will now return 'OV_EBADLINK' in this case.

Monty

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