Attempted fix to Trac #1486
authorMonty <xiphmont@xiph.org>
Wed, 11 Jun 2014 22:36:37 +0000 (22:36 +0000)
committerMonty <xiphmont@xiph.org>
Wed, 11 Jun 2014 22:36:37 +0000 (22:36 +0000)
commit4b2cb0ae3f752859ab5ef688b8578258cfe6b12b
tree2a26dccd3651ea5a2f8465c8690d0d0fd4b9c213
parent53b85cde2838e5ebbb264f232b9679d506411726
Attempted fix to Trac #1486

beginning-of-stream seek targets were no longer well defined in
ov_pcm_seek_page() (and thus ov_pcm_seek()) since extending to
multiplexed streams.  Beginning of stream is a special case due to the
seek target preceding the first explicit granule position.

Although seeking to PCM 0 triggered the bug, early seeks in general
were not ebing handld well; rather than continuing to overload the
bisection, handle the early-seek case outside the loop.

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