platform/upstream/libvorbis.git
6 years agoFix reading maximum, nominal, minimum bitrate in _vorbis_unpack_info().
Jörn Heusipp [Sat, 22 Jul 2017 06:29:35 +0000 (08:29 +0200)]
Fix reading maximum, nominal, minimum bitrate in _vorbis_unpack_info().

https://xiph.org/vorbis/doc/Vorbis_I_spec.html#x1-630004.2.2 specifies
these fields as 32bit signed. oggpack_read(opb,32), which is used to
read these fields, returns 32 bits stored in a long. On architectures
where long is 64bit, this results in a positive value being returned.
This value is then stored in struct vorbis_info in bitrate_upper,
bitrate_nominal and bitrate_lower, also as long. ogginfo relies on
these values in order to display the respective header fields and thus
misrepresented the stored value -1 (which has the intended meaning of
"bitrate not set") as 2**32-1 on architectures where long is 64bit.

Explicitly cast the return value of oggpack_read() to a signed 32bit
integer type.

A nominal bitrate value of -1 is valid as per specification, and is
written by libvorbis for VBR files with samplerate >= 50000Hz.

Signed-off-by: Timothy B. Terriberry <tterribe@xiph.org>
6 years agoRemove svn $Id$ header.
Ralph Giles [Fri, 16 Jun 2017 20:44:20 +0000 (13:44 -0700)]
Remove svn $Id$ header.

Most checked-in files had a comment with a filename and
last-modified string automatically updated by the
subversion version control tool. These became obsolete
when we migrated the repository to git. Remove them.

6 years agoFix signed overflow in _book_maptype1_quantvals().
Timothy B. Terriberry [Tue, 4 Oct 2016 01:22:16 +0000 (18:22 -0700)]
Fix signed overflow in _book_maptype1_quantvals().

If b->dims is very large, vals will be 1 and acc1 will overflow a
 long.
This causes us to read too many values for this codebook.

Signed-off-by: Monty <xiphmont@xiph.org>
7 years agoAdd AppVeyor build status badge.
Ralph Giles [Wed, 5 Oct 2016 20:25:36 +0000 (13:25 -0700)]
Add AppVeyor build status badge.

7 years agoMake CMake build test on Travis-CI mandatory
Marcel Metz [Wed, 5 Oct 2016 16:23:53 +0000 (18:23 +0200)]
Make CMake build test on Travis-CI mandatory

Signed-off-by: Ralph Giles <giles@thaumas.net>
7 years agoAdd cmake as optional build system to Travis-CI configuration
Marcel Metz [Wed, 5 Oct 2016 16:07:26 +0000 (18:07 +0200)]
Add cmake as optional build system to Travis-CI configuration

7 years agoAdd BUILD_SYSTEM env variable to Travis-CI build matrix
Marcel Metz [Wed, 5 Oct 2016 16:05:43 +0000 (18:05 +0200)]
Add BUILD_SYSTEM env variable to Travis-CI build matrix

This allows to switch between different build systems when building
multiple test matrix configurations.

7 years agoautotools: Fix doc_DATA install.
Ralph Giles [Wed, 5 Oct 2016 20:07:00 +0000 (13:07 -0700)]
autotools: Fix doc_DATA install.

Both the generated format specification document and the static
html documents depend on the logo in fish_xiph_org.png.

Unfortunately we can't list them both in their respective
dependencies because both are passed to doc_DATA for installation
and automake doesn't seem to remove duplicates, causing
/usr/bin/install to complain about the overwrite.

I couldn't find a good solution to this. Wrapping the doc_DATA
value in GNU make's $(sort /list/) function would work, but
automake warns about the non-portable construct. Instead, I've
just removed it from the spec dependency list and appended it
manually.

7 years agoAdd missing graphics for the html spec.
Ralph Giles [Wed, 5 Oct 2016 19:49:26 +0000 (12:49 -0700)]
Add missing graphics for the html spec.

New equations were added to the spec source in the previous
update (early last year) but the generated graphic versions
where not added to the repository.

Also add all the generated figures to the distribution. No
sense in shipping a spec with broken links.

7 years agoMake CMake build test on AppVeyor mandatory
Marcel Metz [Wed, 5 Oct 2016 16:19:30 +0000 (18:19 +0200)]
Make CMake build test on AppVeyor mandatory

Signed-off-by: Ralph Giles <giles@thaumas.net>
7 years agoUse different install dir for libogg dependency in CMake AppVeyor
Marcel Metz [Wed, 5 Oct 2016 15:11:35 +0000 (17:11 +0200)]
Use different install dir for libogg dependency in CMake AppVeyor

7 years agoAdd OGG_ROOT search path to AppVeyor CMake build
Marcel Metz [Wed, 5 Oct 2016 14:10:18 +0000 (16:10 +0200)]
Add OGG_ROOT search path to AppVeyor CMake build

7 years agoBuild CMake install target for libogg dependency on AppVeyor
Marcel Metz [Wed, 5 Oct 2016 14:03:40 +0000 (16:03 +0200)]
Build CMake install target for libogg dependency on AppVeyor

7 years agoAdd cmake as optional build system to AppVeyor configuration
Marcel Metz [Wed, 5 Oct 2016 13:39:22 +0000 (15:39 +0200)]
Add cmake as optional build system to AppVeyor configuration

7 years agoAdd BUILD_SYSTEM env variable to AppVeyor build matrix
Marcel Metz [Wed, 5 Oct 2016 13:36:27 +0000 (15:36 +0200)]
Add BUILD_SYSTEM env variable to AppVeyor build matrix

This allows to switch between different build systems when building
multiple test matrix configurations.

7 years agoUse build_script step in AppVeyor configuration
Marcel Metz [Wed, 5 Oct 2016 13:31:57 +0000 (15:31 +0200)]
Use build_script step in AppVeyor configuration

Preparations for building with multiple build systems

7 years agoFix CMake error
Russell Greene [Tue, 4 Oct 2016 01:13:35 +0000 (19:13 -0600)]
Fix CMake error

Include vorbis library when linking vorbisfile and vorbisenc.

Signed-off-by: Ralph Giles <giles@thaumas.net>
7 years agoInitial appveyor config to test the Windows build.
Ralph Giles [Thu, 8 Sep 2016 19:38:57 +0000 (12:38 -0700)]
Initial appveyor config to test the Windows build.

This makes the minimal changes necessary to build
the dynamic solution Win32|Debug target with VS2015
and against the static solution from the ogg master
branch.

The other targets can be added after updating the
project files for VS2015.

7 years agoAdd ids to v-comment.html
Christian Weiske [Fri, 22 Jul 2016 19:56:10 +0000 (21:56 +0200)]
Add ids to v-comment.html

This allows linking to specific sections.

Signed-off-by: Timothy B. Terriberry <tterribe@xiph.org>
7 years agodoc/Makefile.am: Fix `clean` target
Erik de Castro Lopo [Thu, 12 May 2016 09:35:28 +0000 (19:35 +1000)]
doc/Makefile.am: Fix `clean` target

The `doc/Vorbis_I_spec*.png` files are checked into git, but were also
being incorrectly deleted during `make clean` because they were listed
in `CLEANFILES`.

8 years agoUpdate doxygen message.
Ralph Giles [Mon, 28 Mar 2016 20:05:17 +0000 (13:05 -0700)]
Update doxygen message.

Configure only looks for doxygen if --enable-docs is passed,
so report that as the issue instead.

8 years agoPass -Wall -Wextra when building on linux32.
Ralph Giles [Mon, 28 Mar 2016 20:00:30 +0000 (13:00 -0700)]
Pass -Wall -Wextra when building on linux32.

We want to be warning-free, so this should be the default,
not just debug builds. It already is on most other targets.

8 years agoMake travis builds verbose.
Ralph Giles [Mon, 28 Mar 2016 20:01:32 +0000 (13:01 -0700)]
Make travis builds verbose.

Recover the full compiler command lines for reference in the
logs after the AM_SILENT_RULES change.

8 years agoEnable AM_SILENT_RULES.
Ralph Giles [Mon, 28 Mar 2016 19:49:27 +0000 (12:49 -0700)]
Enable AM_SILENT_RULES.

Makes warnings more obvious.

8 years agoFix install of pkgconfig files and allow use of OGG_ROOT variable
Steffen Ohrendorf [Sat, 30 Jan 2016 23:19:38 +0000 (23:19 +0000)]
Fix install of pkgconfig files and allow use of OGG_ROOT variable

8 years agoUse svg image for TravisCI badge
Chocobo1 [Fri, 26 Feb 2016 14:29:11 +0000 (22:29 +0800)]
Use svg image for TravisCI badge

8 years agoEnable parallel builds on TravisCI
Chocobo1 [Thu, 25 Feb 2016 14:27:39 +0000 (22:27 +0800)]
Enable parallel builds on TravisCI

8 years agoAdd testing with clang compiler
Chocobo1 [Sun, 21 Feb 2016 14:27:16 +0000 (22:27 +0800)]
Add testing with clang compiler

8 years agotravis: use sudo-less apt-plugin install of libogg-dev.
Ralph Giles [Mon, 18 Jan 2016 19:35:11 +0000 (11:35 -0800)]
travis: use sudo-less apt-plugin install of libogg-dev.

This lets our test job dispatch on the container infrastructure,
which is faster.

8 years agoAllocate comment temporaries on the heap.
Ralph Giles [Tue, 13 Oct 2015 22:32:59 +0000 (15:32 -0700)]
Allocate comment temporaries on the heap.

Use malloc/free instead of the more convenient alloca for
comment data. Album art can easily be larger than the local
stack limit and crash the process.

Thanks to Robert Kausch for the suggestion.

8 years agoRemove spurious variable from autogen.sh.
Ralph Giles [Sat, 26 Sep 2015 00:13:54 +0000 (17:13 -0700)]
Remove spurious variable from autogen.sh.

8 years agoconfigure.ac: Add AC_CONFIG_MACRO_DIR
Erik de Castro Lopo [Wed, 5 Aug 2015 07:18:37 +0000 (17:18 +1000)]
configure.ac: Add AC_CONFIG_MACRO_DIR

8 years agoconfigure.ac: Whitespace only
Erik de Castro Lopo [Wed, 5 Aug 2015 07:17:50 +0000 (17:17 +1000)]
configure.ac: Whitespace only

8 years agoAdd CMake documentation to readme.
stopiccot [Sun, 14 Jun 2015 23:21:21 +0000 (02:21 +0300)]
Add CMake documentation to readme.

Signed-off-by: Ralph Giles <giles@thaumas.net>
8 years agoAdd CMake script to build vorbis.
stopiccot [Sun, 7 Jun 2015 14:15:41 +0000 (17:15 +0300)]
Add CMake script to build vorbis.

Signed-off-by: Ralph Giles <giles@thaumas.net>
8 years agoUse https urls in README.
Ralph Giles [Sun, 31 May 2015 17:08:29 +0000 (10:08 -0700)]
Use https urls in README.

8 years agoRemove trailing whitespace.
Ralph Giles [Sun, 31 May 2015 17:07:22 +0000 (10:07 -0700)]
Remove trailing whitespace.

8 years agoAdd build description for travis continuous integration service.
stopiccot [Wed, 20 May 2015 17:16:01 +0000 (20:16 +0300)]
Add build description for travis continuous integration service.

Signed-off-by: Ralph Giles <giles@thaumas.net>
8 years agoSwitch README to markdown.
stopiccot [Sat, 30 May 2015 08:20:46 +0000 (11:20 +0300)]
Switch README to markdown.

Signed-off-by: Ralph Giles <giles@thaumas.net>
8 years agoRemove AC_CONFIG_MACRO_DIRS.
Ralph Giles [Thu, 21 May 2015 04:02:29 +0000 (21:02 -0700)]
Remove AC_CONFIG_MACRO_DIRS.

Jenkins doesn't have new enough libtool for this.

8 years agoMake git ignore generated files.
Ralph Giles [Thu, 21 May 2015 02:49:06 +0000 (19:49 -0700)]
Make git ignore generated files.

8 years agoFix automake warning.
Ralph Giles [Thu, 21 May 2015 02:44:12 +0000 (19:44 -0700)]
Fix automake warning.

Newer versions prefer AM_CPPFLAGS to INCLUDES.
Tell libtool about our m4 directory.

8 years agoSimplify autogen.sh
Ralph Giles [Thu, 21 May 2015 02:38:31 +0000 (19:38 -0700)]
Simplify autogen.sh

Copy the autogen.sh script from the newer daala project. This
just calls autoreconf instead of doing its own tool and
version detection.

Note that this now means one must explicitly invoke ./configure
as ./autogen.sh will no longer do so.

8 years agoRemove todo and MacOS 9 files from distribution.
Ralph Giles [Thu, 21 May 2015 02:28:43 +0000 (19:28 -0700)]
Remove todo and MacOS 9 files from distribution.

Fixes 'make distcheck'.

8 years agoRemove Mac OS 9 project files
stopiccot [Wed, 20 May 2015 17:37:37 +0000 (20:37 +0300)]
Remove Mac OS 9 project files

Signed-off-by: Ralph Giles <giles@thaumas.net>
8 years agoLink all of the examples to libogg.
Thomas Daede [Tue, 19 May 2015 18:11:35 +0000 (11:11 -0700)]
Link all of the examples to libogg.

9 years agoMore release checklist additions.
Ralph Giles [Tue, 3 Mar 2015 17:35:37 +0000 (17:35 +0000)]
More release checklist additions.

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

9 years agoClarify xiph.org updates on the release checklist.
Ralph Giles [Tue, 3 Mar 2015 16:23:14 +0000 (16:23 +0000)]
Clarify xiph.org updates on the release checklist.

Thanks to mark4o for the suggestions.

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

9 years agoAdd a release checklist.
Ralph Giles [Tue, 3 Mar 2015 01:18:18 +0000 (01:18 +0000)]
Add a release checklist.

I always forget things, this is good documentation, and it's been
helpful with the opus releases.

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

9 years agoRecord the release date.
Ralph Giles [Tue, 3 Mar 2015 01:10:26 +0000 (01:10 +0000)]
Record the release date.

Also two more copyright bumps which somehow didn't make the earlier commit.

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

9 years agoBump more copyright dates. v1.3.5
Ralph Giles [Tue, 3 Mar 2015 00:15:29 +0000 (00:15 +0000)]
Bump more copyright dates.

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

9 years agoUpdate changes for release.
Ralph Giles [Tue, 3 Mar 2015 00:06:11 +0000 (00:06 +0000)]
Update changes for release.

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

9 years agoSuppress spurious 'may be used uninitialized' gcc warnings in floor1.c
Monty [Mon, 2 Mar 2015 23:03:34 +0000 (23:03 +0000)]
Suppress spurious 'may be used uninitialized' gcc warnings in floor1.c
encode with static initializers.

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

9 years agoRoll back unintentionally chaged file (barkmel.c) from previous commit.
Monty [Mon, 2 Mar 2015 22:39:28 +0000 (22:39 +0000)]
Roll back unintentionally chaged file (barkmel.c) from previous commit.

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

9 years agoRemove a set-but-unused variable (lastdelta) in the encode-side lsp
Monty [Mon, 2 Mar 2015 22:35:34 +0000 (22:35 +0000)]
Remove a set-but-unused variable (lastdelta) in the encode-side lsp
code.  Note that the code in question is effectively dead as it's for
floor0 encoding, and floor zero has been deprecated for over a decade.

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

9 years agoSomehow the previous svn rm lspmap.png didn't take.
Monty [Fri, 27 Feb 2015 21:38:33 +0000 (21:38 +0000)]
Somehow the previous svn rm lspmap.png didn't take.

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

9 years agoErrata to correct typo in bark equation in 6.2.5 of spec; the last
Monty [Fri, 27 Feb 2015 21:35:42 +0000 (21:35 +0000)]
Errata to correct typo in bark equation in 6.2.5 of spec; the last
paren was misplaced.  The error apparently appeared when resetting the
doc to XML or DocBook.  Note that lspmap.png was erroneously updated
to reflect the typo in r8547 and so it's been wrong since then too.
The original HTML spec was correct (as is the code).

Also remove the associated rendered versions of the typeset equations
as they're no longer used (and lspmap.png was incorrect as described
above anyway)

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

9 years agoDon't use MSVC inline assembly on arm targets.
Ralph Giles [Fri, 27 Feb 2015 19:07:00 +0000 (19:07 +0000)]
Don't use MSVC inline assembly on arm targets.

Patch from Hugo Beauzée-Luyssen. Fixes the build in WindowsRT/ARM.

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

9 years agoUpdate docs makefile according to reflect newly removed graphics files.
Monty [Thu, 26 Feb 2015 22:30:13 +0000 (22:30 +0000)]
Update docs makefile according to reflect newly removed graphics files.

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

9 years agoRemove the ancient (if unlinked) doc/vorbis.html as well as more newly unused graphics.
Monty [Thu, 26 Feb 2015 22:26:56 +0000 (22:26 +0000)]
Remove the ancient (if unlinked) doc/vorbis.html as well as more newly unused graphics.

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

9 years agoEliminate old, neglected DocBook XML version of Vorbis spec doc. It's
Monty [Thu, 26 Feb 2015 22:16:01 +0000 (22:16 +0000)]
Eliminate old, neglected DocBook XML version of Vorbis spec doc.  It's
not been consistently maintained n a number of years and does not
contain all additions/corrections made to the TeX.

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

9 years agoThis commit has two 'functional changes':
Monty [Thu, 26 Feb 2015 22:06:54 +0000 (22:06 +0000)]
This commit has two 'functional changes':

Update the footer to use a modern logo and not kick out a formatting error

handle errata discussed in Trac #2139 regarding single-entry codebooks

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

9 years agoTrac 2139 indirectly brought to light the case of a stream that uses a
Monty [Thu, 26 Feb 2015 02:30:33 +0000 (02:30 +0000)]
Trac 2139 indirectly brought to light the case of a stream that uses a
single-entry codebook, but does not code a codeword of length 1 equal
to zero.  Such a stream could cause a stream to read garbage.

There is no apparent chance of garbage memory writes as this happen
entirely after decode setup, however there is playback DoS potential.

This commit special cases single-entry codebook setup so that decode
is well-defined for streams with single-entry codebooks, and adds some
comments to make it more clear how the case is handled.

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

9 years agoRender prototype and actual function declatation of ov_ilog() semantically consistent
Monty [Wed, 21 Jan 2015 05:24:41 +0000 (05:24 +0000)]
Render prototype and actual function declatation of ov_ilog() semantically consistent

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

9 years agoRemove multiple subtly different inline and static implementaitonos of ilog()
Monty [Wed, 21 Jan 2015 01:17:41 +0000 (01:17 +0000)]
Remove multiple subtly different inline and static implementaitonos of ilog()
Add a few additional sanity checks, mostly functioning to ensure we're always
calling ilog() with >=0 input.

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

9 years agoAdd return code check to _initial_pcmoffset as vorbis_packet_blocksize can fail....
Monty [Mon, 12 Jan 2015 09:43:49 +0000 (09:43 +0000)]
Add return code check to _initial_pcmoffset as vorbis_packet_blocksize can fail.  Closes Trac #2142

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

9 years agoCommit patch in Trac #2067
Monty [Mon, 12 Jan 2015 09:24:24 +0000 (09:24 +0000)]
Commit patch in Trac #2067
replaces -O20 with -O3 in configure.ac

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

9 years agoReorder declaration and initialization of ci and hi so that declaraion is not occurri...
Monty [Mon, 12 Jan 2015 09:20:31 +0000 (09:20 +0000)]
Reorder declaration and initialization of ci and hi so that declaraion is not occurring after the rate <=0 check.

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

9 years agoReject multiple headers of the same type.
Tim Terriberry [Wed, 7 Jan 2015 03:16:56 +0000 (03:16 +0000)]
Reject multiple headers of the same type.

A common application pattern is to call vorbis_synthesis_headerin()
 and count how many times it succeeds.
If you feed it multiple valid comment headers, they will all
 succeed, meaning you can be fooled into think you have a valid
 Vorbis file despite never seeing a setup header.
This patch makes libvorbis reject multiple headers of the same type,
 preventing this from occurring.

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

9 years agoBump libvorbisenc version for 1.3.5 release.
Ralph Giles [Mon, 5 Jan 2015 18:21:40 +0000 (18:21 +0000)]
Bump libvorbisenc version for 1.3.5 release.

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

9 years agoFix encoder crash with non-positive sample rates.
Ralph Giles [Mon, 5 Jan 2015 18:04:20 +0000 (18:04 +0000)]
Fix encoder crash with non-positive sample rates.

Input files with sampling rate 0 are useless and can make
libvorbis access invalid memory because the logic in
_vp_psy_init (and probably other functions) isn't prepared for
it. A sanity check lets the library refuse those inputs
gracefully in the initialization functions before they can
do harm.

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

Fixes #2078
Bug-Debian: https://bugs.debian.org/716613

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

9 years agoBump version for 1.3.5 release.
Ralph Giles [Mon, 5 Jan 2015 17:53:22 +0000 (17:53 +0000)]
Bump version for 1.3.5 release.

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

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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

9 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

10 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

10 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

11 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

11 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