summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year.Ralph Giles2014-05-271-1/+1
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@19149 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Fix format specifier width warning.Ralph Giles2014-05-271-4/+4
| | | | | | | dest_bytes is a long here, so we should use %ld instead of %d. git-svn-id: http://svn.xiph.org/trunk/ogg@19147 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Correct oggpack_writecopy bug reported by Ian Nartowicz: IntegerMonty2014-04-241-15/+246
| | | | | | | | | | | | | | | | overflow checking in oggpack_writecopy_helper got the reallocation size test condition backwards and so would error out when it needed to expand the destination's internal buffer. At the same time, do preexpansion of both aligned and unaligned copies to avoid possible heap thrashing in the unaligned case. Add black and glass box unit tests for oggpack_writecopy and oggpackB_writecopy. git-svn-id: http://svn.xiph.org/trunk/ogg@19119 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Guard against very large packets.Tim Terriberry2013-01-081-13/+31
| | | | | | | | Their size could overflow a long (especially on, e.g., Win64, where they could still fit in memory). git-svn-id: http://svn.xiph.org/trunk/ogg@18758 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Fix a comment typo.Ralph Giles2011-08-041-1/+1
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@18052 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Clean up whitespace.Ralph Giles2011-08-042-103/+99
| | | | | | | Remove trailing whitespace and re-indent some comments. git-svn-id: http://svn.xiph.org/trunk/ogg@18051 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Add ogg_stream_flush_fill to compliment ogg_stream_pageout_fill because ↵Gregory Maxwell2011-08-011-0/+8
| | | | | | ogg_stream_flush will produce multiple pages when >4096 bytes and >4 packets are available. git-svn-id: http://svn.xiph.org/trunk/ogg@18044 0101bb08-14d6-0310-b084-bc0e0c8e3800
* revert r17124 to match reversion of pagespill packet threshold from 8 to Monty2010-11-011-54/+21
| | | | | | | | 4 git-svn-id: http://svn.xiph.org/trunk/ogg@17592 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Revert default page spill from 8 to 4 packets.Monty2010-10-291-1/+1
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@17579 0101bb08-14d6-0310-b084-bc0e0c8e3800
* apply comment spell fix patch from Trac #1623Monty2010-10-271-2/+2
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@17571 0101bb08-14d6-0310-b084-bc0e0c8e3800
* The generic TYPE_MAX macros introduced in r17270 require the gcc typeofTim Terriberry2010-06-101-2/+3
| | | | | | | | | extension, which is not supported by MSVC. We don't actually need that generality, though, so revert to simply using LONG_MAX instead. git-svn-id: http://svn.xiph.org/trunk/ogg@17287 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Two cleanups of buffer LONG_MAX overflow hardening:Monty2010-06-041-3/+3
| | | | | | | | | | | | GCC optimizes out the overflow check due to the overflow check reyling on overflow; reimplement using type-based TYPE_MAX macro Correct an accidental assignment-during-check that wasn't a bug, but was semantically incorrect and rightly triggered a compilation warning. git-svn-id: http://svn.xiph.org/trunk/ogg@17270 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Correct packet accumulation in _packetout to accumulate a full long of bytes, Monty2010-06-041-1/+1
| | | | | | | | mathing the ogg_packet declaration. git-svn-id: http://svn.xiph.org/trunk/ogg@17269 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Complete code review on the pattern:Monty2010-06-041-56/+90
| | | | | | | | | | | | | | if(b->endbyte*8+bits>b->storage*8)goto overflow; Eliminate the possibility of b->endbyte overflow on buffer storage near or exactly at long storage limit; corrections made to both read and write. Also, harden both read and write against requesting <0 or >32 read/write. In both case, the packer is put into 'error' state. git-svn-id: http://svn.xiph.org/trunk/ogg@17268 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Update make check to work properly with the new page spill heuristic from r17098Gregory Maxwell2010-04-051-21/+54
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@17124 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Add a 'ogg_stream_pageout_fill' function to allow smart applications with ↵Gregory Maxwell2010-03-291-4/+19
| | | | | | delay sensitive flushing to produce big pages. Increase the default minimum fill amount to 8 based on latency measurements with actual files. These changes may be controversial but since we've recently had a release I thought there would be no harm in getting them into the repository for discussion. git-svn-id: http://svn.xiph.org/trunk/ogg@17098 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Cast away a char pointer signedness warning.Ralph Giles2010-03-261-4/+4
| | | | | | | | | | | The oggpack_* calls expect an unsigned char *, but the self-test code for convenience uses string literals for some of the test vectors. This generates a warning on gcc and clang, at least. We silence the warning by casting the literals to (unsigned char *). git-svn-id: http://svn.xiph.org/trunk/ogg@17063 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Fix int vs long issues with the framing self-test code.Ralph Giles2010-03-261-3/+3
| | | | | | | Warnings reported by clang (the llvm C compiler). git-svn-id: http://svn.xiph.org/trunk/ogg@17060 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Update make check to work properly with the new page spill heuristicMonty2010-03-261-54/+225
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@17039 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Modify default page flushing behavior;Monty2010-03-212-37/+60
| | | | | | | | | | | 1) Don't unneccessarily span pages. 2) Unless necessary, don't flush pages if there are less than four packets on them; this expands page size to reduce unneccessary overhead if incoming packets are large. git-svn-id: http://svn.xiph.org/trunk/ogg@16993 0101bb08-14d6-0310-b084-bc0e0c8e3800
* DESTROY ALL TABSMonty2009-05-272-412/+412
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@16051 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Complete fleshing out async error reporting interface in the source;Monty2009-05-272-15/+61
| | | | | | | | | | makes it safe to ignore most return codes in applications and simply check occasionally to see if something went wrong at some earlier point. git-svn-id: http://svn.xiph.org/trunk/ogg@16047 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Correct a typo in the new oggpackB_writecheck that would have caused a Monty2009-05-211-1/+1
| | | | | | | | stack overflow. git-svn-id: http://svn.xiph.org/trunk/ogg@16022 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Update configure script to use new 'legal' names for cache vals (I hate you ↵Monty2009-05-192-27/+83
| | | | | | | | | | | | | | | | | | | | so much, autofoo) Update ogg to check the return of all allocs for those on embedded platforms with guarantees non-ovecommit. Be aware that these checks are useless on any modern desktop OS, but that embedded folks with no MMU and a hard heap boundary will benefit. Add one new call to bitpacker that will query a write-mode oggpack_buffer to see if it ran out of memory at some point; there was no other way to add the error reporting in an ABI-compatible manner (and it also allows the writepacker to avoid extra checks; it will just keep going after running out of memory without faulting and state can be queried later). git-svn-id: http://svn.xiph.org/trunk/ogg@16016 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Minor fixes to allow cross compiling from Linux to windows and running the ↵erikd2008-04-131-1/+3
| | | | | | tests under Wine. git-svn-id: http://svn.xiph.org/trunk/ogg@14725 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Fix possible read past the end of the buffer when reading 0 bits.Tim Terriberry2008-02-291-0/+3
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@14546 0101bb08-14d6-0310-b084-bc0e0c8e3800
* six const correct-ness fixeserikd2008-02-091-8/+8
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@14463 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Add Andrew Donkin's iovec patch to libogg 1. Applied as-is after Monty2007-02-081-11/+24
| | | | | | | | review. git-svn-id: http://svn.xiph.org/trunk/ogg@12446 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Use the automake test framework to run the self tests so we get a Ralph Giles2006-11-061-3/+1
| | | | | | | completion summary. git-svn-id: http://svn.xiph.org/trunk/ogg@12044 0101bb08-14d6-0310-b084-bc0e0c8e3800
* remove obsolete .cvsignore filesRalph Giles2006-01-281-6/+0
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@10757 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Correct the test case data to expect a granulepos of -1 on pages whereRalph Giles2005-07-231-4/+4
| | | | | | | | | | | | | no packet ends. The spec is clear about this but the unit tests assumed the old behaviour (carry over the previous granulepos) was correct. I did not verify the new CRC values by hand however, they are just copied from the library output. Also update changelog for the bug fix. git-svn-id: http://svn.xiph.org/trunk/ogg@9601 0101bb08-14d6-0310-b084-bc0e0c8e3800
* According to the Ogg specification, an ogg page that doesn't have any Mike Smith2005-07-221-2/+3
| | | | | | | | | | packets ending on it (which commonly happens with video keyframes, for instance) must have a granulepos of -1. libogg never implemented this correctly; this patch ensures it does. git-svn-id: http://svn.xiph.org/trunk/ogg@9598 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Remove obsolete doc reference.Ralph Giles2005-06-061-13/+12
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@9371 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Fix for Josh Coalson's long-packet sync continuation bug. Passes all unit ↵Monty2004-09-221-3/+7
| | | | | | tests. git-svn-id: http://svn.xiph.org/trunk/ogg@7835 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Added appropriate unit test to test for Josh's bug.Monty2004-09-221-14/+52
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@7824 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Fix for bugs 464/564Monty2004-09-011-1/+1
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@7675 0101bb08-14d6-0310-b084-bc0e0c8e3800
* free memory allocated in testing routines, to allow checks to pass inConrad Parker2004-08-192-0/+14
| | | | | | | leak-checking environments git-svn-id: http://svn.xiph.org/trunk/ogg@7586 0101bb08-14d6-0310-b084-bc0e0c8e3800
* add explicit casts and consts to fix visual c compiler warningsConrad Parker2004-08-112-31/+31
| | | | | | | | (patch from Colin Ward) + tested on linux/gcc git-svn-id: http://svn.xiph.org/trunk/ogg@7525 0101bb08-14d6-0310-b084-bc0e0c8e3800
* * error out on autotools failures so warnings are caught early onThomas Vander Stichele2004-07-051-2/+0
| | | | | | | | | | | | * clean up AC_OUTPUT * AUTOMAKE_OPTIONS = foreign only needs to be done toplevel (this can be verified by checking Makefile's generated in other directories and seeing that the var isn't used) git-svn-id: http://svn.xiph.org/trunk/ogg@6990 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Correct masking bug (incorrect implicit cast) in oggpackB_read that'sMonty2004-06-171-1/+1
| | | | | | | | | exposed by 64 bit systems; the 32 bit mask is signed default and being sign-extended by 64 bit. git-svn-id: http://svn.xiph.org/trunk/ogg@6832 0101bb08-14d6-0310-b084-bc0e0c8e3800
* A bcopy() snuck in from sloppy source tree management. Revert it toMonty2004-03-161-2/+2
| | | | | | | | the original memmove (bcopy is neither portable nor equivalent to memmove) git-svn-id: http://svn.xiph.org/trunk/ogg@5951 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Fix for bug 498Monty2004-03-081-4/+4
| | | | | | | (B_look() and B_read() broken on 64 bit archs) git-svn-id: http://svn.xiph.org/trunk/ogg@5904 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Add a 'make check' hook to call invoke the self tests now that we're onRalph Giles2003-11-101-1/+15
| | | | | | | automake 1.6 where such things are reasonable. git-svn-id: http://svn.xiph.org/trunk/ogg@5551 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Temporary fix to bitwise.c bigendian null-bit read calls. The fix isMonty2003-11-101-3/+3
| | | | | | | fine, I want to find something slightly more elegant. git-svn-id: http://svn.xiph.org/trunk/ogg@5550 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Fix for bug 458Monty2003-10-081-6/+11
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@5409 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Correct a typo (extra digit) in the mask8B array. Thanks for derf forRalph Giles2003-09-291-2/+2
| | | | | | | the fix. Bug 457. git-svn-id: http://svn.xiph.org/trunk/ogg@5378 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Commit fix for bug #229Mike Smith2003-01-181-1/+1
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@4265 0101bb08-14d6-0310-b084-bc0e0c8e3800
* fix documentation errors. thanks to David K. Gasaway for pointing out the ↵Ralph Giles2002-09-291-6/+6
| | | | | | problem. git-svn-id: http://svn.xiph.org/trunk/ogg@3964 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Add bigendian bitpacker to libogg (that is, a packer that packs MSbitMonty2002-09-151-56/+381
| | | | | | | | | | | | | first into bit position 7, rtaher than LSb first into bit position 0, ala Vorbis I). VP3 needs it, as will other future Ogg codecs. Might as well add it now. Monty git-svn-id: http://svn.xiph.org/trunk/ogg@3911 0101bb08-14d6-0310-b084-bc0e0c8e3800
* -I$(top_builddir)/include fix needed for builddir != srcdircalc2002-07-111-1/+1
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@3592 0101bb08-14d6-0310-b084-bc0e0c8e3800