platform/upstream/libvorbis.git
9 years agoFix crash on corrupt input file (invalid mode index)
Tim Terriberry [Sun, 4 Jan 2015 18:54:27 +0000 (18:54 +0000)]
Fix crash on corrupt input file (invalid mode index)

vorbis_packet_blocksize() crashes with a NULL pointer dereference,
if the "mode" index read from the packet is too large. Check this
immediately after reading the value and before accessing the mode
parameters. This crash potentially affects all users of libvorbisfile
and anyone else who calls vorbis_packet_blocksize() manually.

Patch by Martin Steghöfer <martin@steghoefer.eu>

Fixes #2140
Bug-Debian: https://bugs.debian.org/774516

svn path=/trunk/vorbis/; revision=19419

10 years agoFix spec typo.
Ralph Giles [Tue, 14 Oct 2014 21:03:45 +0000 (21:03 +0000)]
Fix spec typo.

Issue #2060.

svn path=/trunk/vorbis/; revision=19241

10 years agoFix some typos in the spec.
Tim Terriberry [Fri, 10 Oct 2014 15:27:37 +0000 (15:27 +0000)]
Fix some typos in the spec.

Thanks to stefan for the report.

Fixes #2060.

svn path=/trunk/vorbis/; revision=19231

10 years agoCorrect two more corner case problems with #1486:
Monty [Tue, 24 Jun 2014 14:26:38 +0000 (14:26 +0000)]
Correct two more corner case problems with #1486:
1) single-page streams will have no bisection; handle the special case explicitly
2) if the bisection fails without ever successfully grabbing a page, the first-page-special-case check is unprotected and will look at uninitialized memory.

svn path=/trunk/vorbis/; revision=19171

10 years agoUpdate vorbisfile source copyright
Monty [Wed, 18 Jun 2014 08:18:11 +0000 (08:18 +0000)]
Update vorbisfile source copyright

svn path=/trunk/vorbis/; revision=19166

10 years agoAdditional fix to last-page handling, this time in initial bisection;
Monty [Wed, 18 Jun 2014 08:10:07 +0000 (08:10 +0000)]
Additional fix to last-page handling, this time in initial bisection;
the code had gotten too cavalier about directly munging the vf->offset
file pointer as well as using it as an implicit argument to
_get_prev_page and _get_prev_page_serial.  The fact it was being used
as an argument and a side effect caused a necessary seek to get missed
when the last page of a link was non-vorbis.

Fix: Clean up the overloading, and be explicit about where we're
beginning prev_page reads.

svn path=/trunk/vorbis/; revision=19165

10 years agoCorrect two errors in patch for Trac #1486:
Monty [Wed, 18 Jun 2014 06:33:58 +0000 (06:33 +0000)]
Correct two errors in patch for Trac #1486:

1) vf->offset should not have been overridden in new front-of-stream case
2) missing status output in seeking_example.c

svn path=/trunk/vorbis/; revision=19164

10 years agoAttempted fix to Trac #1486
Monty [Wed, 11 Jun 2014 22:36:37 +0000 (22:36 +0000)]
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

10 years agoExtend seeking_example to always perform a pcm / pcm_page seek test to position 0...
Monty [Wed, 11 Jun 2014 22:31:46 +0000 (22:31 +0000)]
Extend seeking_example to always perform a pcm / pcm_page seek test to position 0 as an addiitonal test

svn path=/trunk/vorbis/; revision=19158

10 years agoBump vendor string for dot release. v1.3.4
Monty [Wed, 22 Jan 2014 18:03:15 +0000 (18:03 +0000)]
Bump vendor string for dot release.

svn path=/trunk/vorbis/; revision=19058

10 years agoMove all the static encoder codebooks to 'char' lengthlists rather than 'long' as...
Monty [Wed, 22 Jan 2014 12:32:31 +0000 (12:32 +0000)]
Move all the static encoder codebooks to 'char' lengthlists rather than 'long' as the largest value for a lengthlist entry is 32 and the lengthlists are large.

Alter the codebook generation tools in vq/ to generate the codebooks properly given the new type.

[Hopefully] no functional change.

svn path=/trunk/vorbis/; revision=19057

10 years agodebug and profile targets weren't hooked to anything; have them make check with flags...
Monty [Wed, 22 Jan 2014 12:29:57 +0000 (12:29 +0000)]
debug and profile targets weren't hooked to anything; have them make check with flags rather than make all

svn path=/trunk/vorbis/; revision=19056

10 years agoVarious warning fixes.
Tim Terriberry [Tue, 3 Dec 2013 19:20:50 +0000 (19:20 +0000)]
Various warning fixes.

Some of these were introduced in r19028.
Others have been around much longer.

svn path=/trunk/vorbis/; revision=19031

10 years agoMake definition of _vorbis_window_get() match declaration.
Tim Terriberry [Mon, 2 Dec 2013 23:23:39 +0000 (23:23 +0000)]
Make definition of _vorbis_window_get() match declaration.

window.c wasn't actually including window.h, or this would have been
 noticed earlier.

svn path=/trunk/vorbis/; revision=19028

10 years agoEnable keyword substitution on remaining files with $Id$ lines.
Ralph Giles [Tue, 12 Nov 2013 04:13:28 +0000 (04:13 +0000)]
Enable keyword substitution on remaining files with $Id$ lines.

svn path=/trunk/vorbis/; revision=19015

10 years agoAdd license header and turn on keyword substitution for 5.1 codebook.
Ralph Giles [Tue, 12 Nov 2013 04:09:40 +0000 (04:09 +0000)]
Add license header and turn on keyword substitution for 5.1 codebook.

svn path=/trunk/vorbis/; revision=19014

10 years agoSet keyword substitution on the 5.1 mode files.
Ralph Giles [Tue, 12 Nov 2013 04:04:50 +0000 (04:04 +0000)]
Set keyword substitution on the 5.1 mode files.

svn path=/trunk/vorbis/; revision=19013

11 years agoPatch for Trac #1974; make sure unit tests pull in -lm during link
Monty [Thu, 19 Sep 2013 15:47:38 +0000 (15:47 +0000)]
Patch for Trac #1974; make sure unit tests pull in -lm during link

svn path=/trunk/vorbis/; revision=19002

11 years agoPatch for trac #1965; clarify in comments and docs that a failed call
Monty [Sat, 13 Jul 2013 20:57:14 +0000 (20:57 +0000)]
Patch for trac #1965; clarify in comments and docs that a failed call
to ov_test does not take ownership of the passed-in file.

svn path=/trunk/vorbis/; revision=18964

11 years agoUpdate pkgconfig files to reduce overlinking.
Tim Terriberry [Fri, 29 Mar 2013 16:49:46 +0000 (16:49 +0000)]
Update pkgconfig files to reduce overlinking.

Patch from Cristian Rodriguez.
Reviewed by: David Schleef, Conrad Parker, Ron Lee
Thanks to Brad Smith for kicking us.
Fixes #1759.

svn path=/trunk/vorbis/; revision=18889

11 years agoBring libvorbis's configure.in into the 21st century.
Tim Terriberry [Tue, 8 Jan 2013 16:58:50 +0000 (16:58 +0000)]
Bring libvorbis's configure.in into the 21st century.

Patch by Ron Lee.

svn path=/trunk/vorbis/; revision=18762

12 years agoEscape more things in the vorbisfile docs' example code.
Tim Terriberry [Sat, 22 Sep 2012 02:09:19 +0000 (02:09 +0000)]
Escape more things in the vorbisfile docs' example code.

svn path=/trunk/vorbis/; revision=18630

12 years agocorrected docs: docs did not reflect the path parameter to be const. see #1593
Philipp Schafft [Sun, 29 Jul 2012 14:12:34 +0000 (14:12 +0000)]
corrected docs: docs did not reflect the path parameter to be const. see #1593

svn path=/trunk/vorbis/; revision=18479

12 years agoHave to remember to update CHANGES for release v1.3.3
Monty [Fri, 3 Feb 2012 22:20:36 +0000 (22:20 +0000)]
Have to remember to update CHANGES for release

svn path=/trunk/vorbis/; revision=18188

12 years agocommit version bump for 1.3.3 release
Monty [Fri, 3 Feb 2012 22:08:44 +0000 (22:08 +0000)]
commit version bump for 1.3.3 release

svn path=/trunk/vorbis/; revision=18186

12 years agoRemove white-xifish.png from makefile dependencies for spec; it doesn't appear to
Monty [Fri, 3 Feb 2012 21:31:16 +0000 (21:31 +0000)]
Remove white-xifish.png from makefile dependencies for spec; it doesn't appear to
reference it, and trying to install it twice is breaking make install.

svn path=/trunk/vorbis/; revision=18185

12 years agoMinor build correction to r18183
Monty [Fri, 3 Feb 2012 20:55:12 +0000 (20:55 +0000)]
Minor build correction to r18183

svn path=/trunk/vorbis/; revision=18184

12 years agoPort r17546 from Tremor; although pieces had made it over to libvorbis, a comprehensive
Monty [Fri, 3 Feb 2012 20:51:27 +0000 (20:51 +0000)]
Port r17546 from Tremor; although pieces had made it over to libvorbis, a comprehensive
port and verification was called for.  This patch provided some additional floor0
hardening:

  floor0 code could potentially use a book where the number of vals it
  needed to decode was not an integer number of dims wide.  This caused
  it to overflow the output vector as the termination condition was in
  the outer loop of vorbis_book_decodev_set.

  None of the various vorbis_book_decodeXXXX calls internally guard
  against this case either, but in every other use the calling code does
  properly guard (and avoids putting more checks in the tight inner
  decode loop).

  For floor0, move the checks into the inner loop as there's little
  penalty for doing so.

[an equivalent change was already in libvorbis, but I've
harmonized the code with tremor]

  For floor0, move the checks into the inner loop as there's little
  penalty for doing so.  Add commentary indicating where guarding is
  done for each call variant.

svn path=/trunk/vorbis/; revision=18183

12 years agoMore typo/layout fixes to the floor 1 spec (packet decode and curve computation ->
Monty [Fri, 3 Feb 2012 19:56:27 +0000 (19:56 +0000)]
More typo/layout fixes to the floor 1 spec (packet decode and curve computation ->
subsubsections, fix my escpaed square brackets)

Commit new html/pdf

svn path=/trunk/vorbis/; revision=18182

12 years agoAdd a clarification to the floor1 decode spec, since I had to re-determine some of...
Monty [Fri, 3 Feb 2012 19:49:57 +0000 (19:49 +0000)]
Add a clarification to the floor1 decode spec, since I had to re-determine some of what
it says for myself after not thinking about it for 15-ish years.

Also, fix an indentation bug that occurred due to TABs sneaking in

svn path=/trunk/vorbis/; revision=18181

12 years agoFix handling of floor0 codebook with no used entries.
Tim Terriberry [Wed, 1 Feb 2012 01:43:09 +0000 (01:43 +0000)]
Fix handling of floor0 codebook with no used entries.

svn path=/trunk/vorbis/; revision=18166

12 years agoCommit new versions of geenrated docs to reflect floor1 spec addition/correction
Monty [Fri, 20 Jan 2012 07:50:52 +0000 (07:50 +0000)]
Commit new versions of geenrated docs to reflect floor1 spec addition/correction

svn path=/trunk/vorbis/; revision=18156

12 years agoCommit fix to Moz Bugzilla #719612 (along with spec update in previous commit)
Monty [Fri, 20 Jan 2012 07:35:26 +0000 (07:35 +0000)]
Commit fix to Moz Bugzilla #719612 (along with spec update in previous commit)

svn path=/trunk/vorbis/; revision=18151

12 years agoSpec correction: Hard limit of 63 configurable (65 total) floor1 posts was never...
Monty [Fri, 20 Jan 2012 07:10:43 +0000 (07:10 +0000)]
Spec correction: Hard limit of 63 configurable (65 total) floor1 posts was never spelled out in the spec.
Part of addressing Moz BZ #719612

svn path=/trunk/vorbis/; revision=18150

13 years agoFix a memory leak in vorbis_commentheader_out().
Tim Terriberry [Fri, 4 Nov 2011 23:55:47 +0000 (23:55 +0000)]
Fix a memory leak in vorbis_commentheader_out().

Fixes #1840.
Thanks to Alexandru Munteanu for the patch.

svn path=/trunk/vorbis/; revision=18115

13 years agoIfdef out an unused variable.
Ralph Giles [Fri, 2 Sep 2011 02:49:00 +0000 (02:49 +0000)]
Ifdef out an unused variable.

Corrects a warning on Apple gcc 4.2.

svn path=/trunk/vorbis/; revision=18077

13 years agoAdd even more parentheses to silence warnings.
Ralph Giles [Fri, 2 Sep 2011 02:44:49 +0000 (02:44 +0000)]
Add even more parentheses to silence warnings.

This is a more aggressive fix than r17688. This version is from
a similar patch to the Mozilla tree by Atul Aggarwal. See
https://bugzilla.mozilla.org/show_bug.cgi?id=666672 for the
history.

svn path=/trunk/vorbis/; revision=18076

13 years agoRemove generated Makefile.in inadvertently included in r18064.
Ralph Giles [Fri, 2 Sep 2011 02:40:30 +0000 (02:40 +0000)]
Remove generated Makefile.in inadvertently included in r18064.

svn path=/trunk/vorbis/; revision=18075

13 years agoNgh, whitespace lines are significant in package import
Monty [Thu, 11 Aug 2011 17:00:27 +0000 (17:00 +0000)]
Ngh, whitespace lines are significant in package import

svn path=/trunk/vorbis/; revision=18069

13 years agoFix numbering in interrupted enumerate lists (eg, in floor0 curve
Monty [Thu, 11 Aug 2011 16:58:36 +0000 (16:58 +0000)]
Fix numbering in interrupted enumerate lists (eg, in floor0 curve
computation pseudocode)
Regenerate docs with updated/corrected fancvrb package

svn path=/trunk/vorbis/; revision=18068

13 years agoMore underscore cleanups; it appears that \usepackage{underscore} in
Monty [Thu, 11 Aug 2011 07:30:43 +0000 (07:30 +0000)]
More underscore cleanups; it appears that \usepackage{underscore} in
unreliable in several environments like \mathtt and \emph

svn path=/trunk/vorbis/; revision=18067

13 years agoHack to deal with the fact that underscores in a \mathtt{} were showing
Monty [Thu, 11 Aug 2011 07:04:25 +0000 (07:04 +0000)]
Hack to deal with the fact that underscores in a \mathtt{} were showing
up as the letter 'X', but using \texttt{} instead caused incorrect type
scaling in math typesetting

svn path=/trunk/vorbis/; revision=18066

13 years agoIf we're committing a pregenerated HTML version of the spec, we need to
Monty [Thu, 11 Aug 2011 06:31:23 +0000 (06:31 +0000)]
If we're committing a pregenerated HTML version of the spec, we need to
commit the pregenned equation images with it.

svn path=/trunk/vorbis/; revision=18065

13 years agoCommit corrected/pregenerated spec docs. This doesn't commit the
Monty [Thu, 11 Aug 2011 06:30:18 +0000 (06:30 +0000)]
Commit corrected/pregenerated spec docs.  This doesn't commit the
pregen images, those come next...

svn path=/trunk/vorbis/; revision=18064

13 years agoThe XML had the p/q equations for even LSP curve computation wrong too
Monty [Thu, 11 Aug 2011 06:17:29 +0000 (06:17 +0000)]
The XML had the p/q equations for even LSP curve computation wrong too

svn path=/trunk/vorbis/; revision=18063

13 years agoThe DocBook->TeX conversion typoed the even LSP curve computation
Monty [Thu, 11 Aug 2011 06:12:39 +0000 (06:12 +0000)]
The DocBook->TeX conversion typoed the even LSP curve computation
equations for p and q; removed the spurious ^2.

svn path=/trunk/vorbis/; revision=18062

13 years agoFixed project configuration which referenced two CRT versions in output binaries.
Cristian Adam [Sun, 9 Jan 2011 21:38:48 +0000 (21:38 +0000)]
Fixed project configuration which referenced two CRT versions in output binaries.

svn path=/trunk/vorbis/; revision=17772

13 years agoA trio of warning fixes.
Tim Terriberry [Mon, 29 Nov 2010 23:53:30 +0000 (23:53 +0000)]
A trio of warning fixes.

Thanks to Josh Soref for the report.

svn path=/trunk/vorbis/; revision=17688

14 years agoPrefer dist-xz to dist-bzip2. This requires automake 1.11.
Ralph Giles [Tue, 2 Nov 2010 21:22:37 +0000 (21:22 +0000)]
Prefer dist-xz to dist-bzip2. This requires automake 1.11.

The newer xz compression utility offers superiour compression
efficiency *and* speed over bzip2. Since adoption of bzip2
never became near universal, we still provide gzip for those
on older or more conservative systems. Furthermore, for smaller
archives the performance penalty often doesn't pay for the savings
in transfer time we might as well replace the 'smaller' bzip2
option with xz, which at least does better in this regard.

Since Automake 1.11 isn't available in all environments yes
(e.g. some scratchbox toolchains) we leave the old Makefile.am
AUTOMAKE_OPTIONS line commented out. Just uncomment this to
build on systems with older automakes.

svn path=/trunk/vorbis/; revision=17614

14 years agoRemove the generated Makefile.in, inadvertently included in the last commit.
Ralph Giles [Tue, 2 Nov 2010 21:12:08 +0000 (21:12 +0000)]
Remove the generated Makefile.in, inadvertently included in the last commit.

svn path=/trunk/vorbis/; revision=17611

14 years agoAdd new API documenation files from the 1.3.2 release.
Ralph Giles [Tue, 2 Nov 2010 21:08:40 +0000 (21:08 +0000)]
Add new API documenation files from the 1.3.2 release.

svn path=/trunk/vorbis/; revision=17610

14 years agoUpdate vorbis CHANGES file
Monty [Mon, 1 Nov 2010 19:51:46 +0000 (19:51 +0000)]
Update vorbis CHANGES file

svn path=/trunk/vorbis/; revision=17587

14 years agoDoc patch removed superfluous files, now need to remove them in SVN
Monty [Mon, 1 Nov 2010 19:34:51 +0000 (19:34 +0000)]
Doc patch removed superfluous files, now need to remove them in SVN

svn path=/trunk/vorbis/; revision=17586

14 years agoUpdate configure, spec and pc file versions for release
Monty [Mon, 1 Nov 2010 19:29:55 +0000 (19:29 +0000)]
Update configure, spec and pc file versions for release

svn path=/trunk/vorbis/; revision=17585

14 years agoCommit new version/vendor string in preparation for release.
Monty [Mon, 1 Nov 2010 19:26:16 +0000 (19:26 +0000)]
Commit new version/vendor string in preparation for release.

svn path=/trunk/vorbis/; revision=17584

14 years agoUpdate documentation versioning/copyrights toward release
Monty [Mon, 1 Nov 2010 19:21:27 +0000 (19:21 +0000)]
Update documentation versioning/copyrights toward release

svn path=/trunk/vorbis/; revision=17583

14 years agoIt's 'Xiph.Org' not 'Xiph.Org' or 'xIpH.ORg'
Monty [Mon, 1 Nov 2010 18:53:27 +0000 (18:53 +0000)]
It's 'Xiph.Org' not 'Xiph.Org' or 'xIpH.ORg'

svn path=/trunk/vorbis/; revision=17582

14 years agoCommit libvorbis documentation patch from John Stumpo; adds complete
Monty [Mon, 1 Nov 2010 18:47:53 +0000 (18:47 +0000)]
Commit libvorbis documentation patch from John Stumpo; adds complete
docs to libvorbis, moves a few pages from the vorbisfile and
libvorbisenc docs into the new libvorbis doc tree.

svn path=/trunk/vorbis/; revision=17581

14 years agolibvorbis version of fix for Trac #1578
Monty [Wed, 27 Oct 2010 14:53:59 +0000 (14:53 +0000)]
libvorbis version of fix for Trac #1578

svn path=/trunk/vorbis/; revision=17573

14 years agoBump versioning toward upcoming release
Monty [Tue, 26 Oct 2010 17:13:36 +0000 (17:13 +0000)]
Bump versioning toward upcoming release

svn path=/trunk/vorbis/; revision=17570

14 years agoBack out the old HF AoTuV weighting which was first enabled in
Monty [Tue, 26 Oct 2010 17:09:47 +0000 (17:09 +0000)]
Back out the old HF AoTuV weighting which was first enabled in
Everywhere.  There are a few samples where I really don't like the
effect it causes.

svn path=/trunk/vorbis/; revision=17569

14 years agoCommit change to libvorbis that returns correct timestamp for granule
Monty [Sun, 24 Oct 2010 04:50:46 +0000 (04:50 +0000)]
Commit change to libvorbis that returns correct timestamp for granule
positions with high bit set.

Make two 'better safe than sorry' changes in vorbisfile that clamp
pcmoffsets entries to being strictly >=0.

svn path=/trunk/vorbis/; revision=17562

14 years agoCommit tterribe's port of Tremor r17541:
Monty [Sat, 23 Oct 2010 10:34:24 +0000 (10:34 +0000)]
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

14 years agoWhile reviewing a patch to port Tremor r17541, noticed that the
Monty [Sat, 23 Oct 2010 10:29:11 +0000 (10:29 +0000)]
While reviewing a patch to port Tremor r17541, noticed that the
half-rate decode code in Vorbisfile was never completed past the
original 'quick and dirty' feature request.  Specifically, it made no
attempt to keep the pcm offset tracking consistent in seeks.

Complete this code, and add a testing mode to seeking_example.c to
torture test seeking in halfrate mode.  Also remove requirement that
halfrate mode only work with seekable files.

svn path=/trunk/vorbis/; revision=17560

14 years agoPort r17547 from Tremor.
Tim Terriberry [Fri, 22 Oct 2010 00:24:41 +0000 (00:24 +0000)]
Port r17547 from Tremor.

Disallow books with dim<1 in floor0.

svn path=/trunk/vorbis/; revision=17558

14 years agoPort r17545 from Tremor.
Tim Terriberry [Thu, 21 Oct 2010 18:33:59 +0000 (18:33 +0000)]
Port r17545 from Tremor.

Check that floor0 books all have a value mapping.

svn path=/trunk/vorbis/; revision=17557

14 years agoPort r17544 from Tremor.
Tim Terriberry [Thu, 21 Oct 2010 18:25:19 +0000 (18:25 +0000)]
Port r17544 from Tremor.

A guard conditional used > instead of >=.

svn path=/trunk/vorbis/; revision=17556

14 years agoPort r17543 from Tremor.
Tim Terriberry [Thu, 21 Oct 2010 18:14:51 +0000 (18:14 +0000)]
Port r17543 from Tremor.

A codebook that allows values outside the circular range of the piecewise
 floor1 representation can overflow the lookup
Also fix a typo in the comments of the original patch.

svn path=/trunk/vorbis/; revision=17555

14 years agoPort r17542 from Tremor.
Tim Terriberry [Thu, 21 Oct 2010 18:09:29 +0000 (18:09 +0000)]
Port r17542 from Tremor.

Reinstate an explicit check against phrasebook dim being set to zero.

svn path=/trunk/vorbis/; revision=17554

14 years agoPort r17539 from Tremor.
Tim Terriberry [Thu, 21 Oct 2010 17:54:26 +0000 (17:54 +0000)]
Port r17539 from Tremor.

Bail out of codebook loading early if the packet doesn't have enough data for
 the size of the codebooks it asked for.

svn path=/trunk/vorbis/; revision=17553

14 years agoFix incorrect 'ms' argument in ov_time_seek_*() docs.
Tim Terriberry [Thu, 21 Oct 2010 17:33:15 +0000 (17:33 +0000)]
Fix incorrect 'ms' argument in ov_time_seek_*() docs.

The actual argument is the time in seconds, as documented, but the
 parameter name 'ms' could lead to confusion.
Thanks to Philipp 'ph3-der-loewe' Schafft <lion@lion.leolix.org> for the
 report.

svn path=/trunk/vorbis/; revision=17552

14 years agoFix decoder handling of floor0 when the LSP order is 1.
Tim Terriberry [Fri, 15 Oct 2010 02:52:29 +0000 (02:52 +0000)]
Fix decoder handling of floor0 when the LSP order is 1.

Header setup allows the LSP order to be as low as one, but the code in
 vorbis_lsp_to_curve() assumed it was at least two.
This wasn't terrible in libvorbis... it would multiply a nonsense (but defined)
 value into the output, and nothing more.
In Tremor, it referenced several completely undefined (stack) values, which
 could cause out-of-bounds lookup table accesses and crashes.

svn path=/trunk/vorbis/; revision=17538

14 years agoMake vorbis_synthesis_trackonly error handling match vorbis_synthesis per Mozilla...
Gregory Maxwell [Thu, 30 Sep 2010 03:41:41 +0000 (03:41 +0000)]
Make vorbis_synthesis_trackonly error handling match vorbis_synthesis per Mozilla bug487519.patch

svn path=/trunk/vorbis/; revision=17474

14 years agoUpdated Visual Studio project files.
Cristian Adam [Thu, 23 Sep 2010 21:50:57 +0000 (21:50 +0000)]
Updated Visual Studio project files.

svn path=/trunk/vorbis/; revision=17452

14 years agoAdded Visual Studiop 2010 project files.
Cristian Adam [Tue, 21 Sep 2010 19:04:31 +0000 (19:04 +0000)]
Added Visual Studiop 2010 project files.

svn path=/trunk/vorbis/; revision=17409

14 years agoAdd ov_read_filter.html to documentation files
Mike Smith [Mon, 23 Aug 2010 17:11:46 +0000 (17:11 +0000)]
Add ov_read_filter.html to documentation files

svn path=/trunk/vorbis/; revision=17367

14 years agoCorrect various comment spelling errors.
Ralph Giles [Wed, 5 May 2010 21:49:51 +0000 (21:49 +0000)]
Correct various comment spelling errors.

Based on a patch by Michael Kohler, trac issue #1695.

svn path=/trunk/vorbis/; revision=17195

14 years agoCommit vorbisfile constification patch; affects API but not ABI.
Monty [Thu, 29 Apr 2010 03:48:32 +0000 (03:48 +0000)]
Commit vorbisfile constification patch; affects API but not ABI.
Closes #1593.

svn path=/trunk/vorbis/; revision=17182

14 years agoFix a chaining bug in raw_seeks where seeking out of the current link
Monty [Mon, 26 Apr 2010 14:25:54 +0000 (14:25 +0000)]
Fix a chaining bug in raw_seeks where seeking out of the current link
would fail due to not reinitializing the decode machinery.

Also correct a minor and a moderate inefficiency that reduces the
necessary number of seek callback in a search operation by about 2/3.

svn path=/trunk/vorbis/; revision=17178

14 years agoOne of the Mozilla fixes for #1573 (working around liboggplay
Monty [Mon, 26 Apr 2010 14:24:08 +0000 (14:24 +0000)]
One of the Mozilla fixes for #1573 (working around liboggplay
ignoring an error return value) broke chaining by causing
vorbis_synthesis_init() to fail on a second call.  Fixed.

svn path=/trunk/vorbis/; revision=17177

14 years agoTry out a new seek bisect optimization in vorbisfile.
Monty [Mon, 26 Apr 2010 08:05:07 +0000 (08:05 +0000)]
Try out a new seek bisect optimization in vorbisfile.

svn path=/trunk/vorbis/; revision=17176

14 years agoRe-bump to 1.3.1
Monty [Fri, 26 Mar 2010 06:59:58 +0000 (06:59 +0000)]
Re-bump to 1.3.1

svn path=/trunk/vorbis/; revision=17080

14 years agoOK, desired floor fit behavior settled
Monty [Fri, 26 Mar 2010 06:51:41 +0000 (06:51 +0000)]
OK, desired floor fit behavior settled

svn path=/trunk/vorbis/; revision=17079

14 years agoreinstantiate floor1 weighting changes.
Monty [Fri, 26 Mar 2010 06:39:18 +0000 (06:39 +0000)]
reinstantiate floor1 weighting changes.

svn path=/trunk/vorbis/; revision=17078

14 years agoRevert an element of noise norm to earlier behavior for testing.
Monty [Fri, 26 Mar 2010 06:22:19 +0000 (06:22 +0000)]
Revert an element of noise norm to earlier behavior for testing.

svn path=/trunk/vorbis/; revision=17077

14 years agoRevert floor1 line fitting to exact 1.2.3 behavior; the apparently better
Monty [Fri, 26 Mar 2010 05:30:11 +0000 (05:30 +0000)]
Revert floor1 line fitting to exact 1.2.3 behavior; the apparently better
weighting of 1.3.0pre was slightly dropping PEAQ and slightly increasing
bitrate.

svn path=/trunk/vorbis/; revision=17075

14 years agoCorrect arithmetic error in fit weighting
Monty [Fri, 26 Mar 2010 04:10:18 +0000 (04:10 +0000)]
Correct arithmetic error in fit weighting

svn path=/trunk/vorbis/; revision=17066

14 years agoUpdate version string and CHANGES file toward release
Monty [Fri, 26 Mar 2010 02:57:50 +0000 (02:57 +0000)]
Update version string and CHANGES file toward release

svn path=/trunk/vorbis/; revision=17059

14 years agoSimple arithmetic error as part of fix to #1658 caused floor1 fitting to
Monty [Fri, 26 Mar 2010 02:26:08 +0000 (02:26 +0000)]
Simple arithmetic error as part of fix to #1658 caused floor1 fitting to
fall apart in overwhelmingly tonal regions.

svn path=/trunk/vorbis/; revision=17052

14 years agoLeak fix in decode broke codebook load; fixed
Monty [Fri, 26 Mar 2010 01:54:25 +0000 (01:54 +0000)]
Leak fix in decode broke codebook load; fixed

svn path=/trunk/vorbis/; revision=17051

14 years agoSome compilers need at least a placeholder here
Monty [Fri, 26 Mar 2010 01:34:42 +0000 (01:34 +0000)]
Some compilers need at least a placeholder here

svn path=/trunk/vorbis/; revision=17050

14 years agoAttempted fix for 32 bit overflow in floor1 line fitting for very low
Monty [Thu, 25 Mar 2010 09:30:18 +0000 (09:30 +0000)]
Attempted fix for 32 bit overflow in floor1 line fitting for very low
bitrate modes with oversized blocks.  Should close #1658.

svn path=/trunk/vorbis/; revision=17032

14 years agoWe do in fact need automake 1.7; 1.6 will bomb out.
Monty [Thu, 25 Mar 2010 09:07:22 +0000 (09:07 +0000)]
We do in fact need automake 1.7; 1.6 will bomb out.

svn path=/trunk/vorbis/; revision=17031

14 years agoFix leak when aborting out of static_codebook unpack. Closes #1663.
Monty [Thu, 25 Mar 2010 06:52:55 +0000 (06:52 +0000)]
Fix leak when aborting out of static_codebook unpack.  Closes #1663.

svn path=/trunk/vorbis/; revision=17030

14 years agoFix for Mozilla BZ#550184 and Xiph Trac #1656
Monty [Thu, 25 Mar 2010 05:29:15 +0000 (05:29 +0000)]
Fix for Mozilla BZ#550184 and Xiph Trac #1656

svn path=/trunk/vorbis/; revision=17029

14 years agoKill off two harmless gcc warnings in vorbisenc.c
Monty [Thu, 25 Mar 2010 05:22:15 +0000 (05:22 +0000)]
Kill off two harmless gcc warnings in vorbisenc.c

svn path=/trunk/vorbis/; revision=17028

14 years agoApply patches from Trac #1638, additional application hardening (not
Monty [Thu, 25 Mar 2010 05:21:20 +0000 (05:21 +0000)]
Apply patches from Trac #1638, additional application hardening (not
bugfixes, but ignoring easy-to-catch cases of improper lib use) and one
more bitstream guard.

svn path=/trunk/vorbis/; revision=17027

14 years ago22kHz setup was using wrong compand mapping; closes Trac #1635
Monty [Thu, 25 Mar 2010 05:00:27 +0000 (05:00 +0000)]
22kHz setup was using wrong compand mapping; closes Trac #1635

svn path=/trunk/vorbis/; revision=17026

14 years agoCorrect bug in 16kHz coupled books similar to the bug that had popped up in
Monty [Thu, 25 Mar 2010 04:56:56 +0000 (04:56 +0000)]
Correct bug in 16kHz coupled books similar to the bug that had popped up in
uncoupled output.  It would cause efficiency loss and unstable tones in
high-rate encoding (q5 and higher).

svn path=/trunk/vorbis/; revision=17025

14 years agoTest 1 through 8 channels, all quality levels, all main sample rates. This caught...
Monty [Thu, 25 Mar 2010 04:45:53 +0000 (04:45 +0000)]
Test 1 through 8 channels, all quality levels, all main sample rates.  This caught another codebook error in the
16kHz books

svn path=/trunk/vorbis/; revision=17024