summaryrefslogtreecommitdiff
path: root/src/framing.c
Commit message (Collapse)AuthorAgeFilesLines
* 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-041-78/+74
| | | | | | | 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
* 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
* 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
* 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-211-35/+58
| | | | | | | | | | | 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-271-362/+362
| | | | 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-271-14/+60
| | | | | | | | | | 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
* Update configure script to use new 'legal' names for cache vals (I hate you ↵Monty2009-05-191-13/+34
| | | | | | | | | | | | | | | | | | | | 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
* 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
* 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
* free memory allocated in testing routines, to allow checks to pass inConrad Parker2004-08-191-0/+12
| | | | | | | 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-111-12/+12
| | | | | | | | (patch from Colin Ward) + tested on linux/gcc git-svn-id: http://svn.xiph.org/trunk/ogg@7525 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
* Xiphophorus -> Xiph.Org changesMonty2002-07-111-3/+3
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@3577 0101bb08-14d6-0310-b084-bc0e0c8e3800
* add 'ogg_stream_reset_serialno()' because it's useful. The sameMonty2002-03-071-1/+7
| | | | | | | | | | functionality before required a clear/init cycle that involved free()/malloc(). Monty git-svn-id: http://svn.xiph.org/trunk/ogg@3125 0101bb08-14d6-0310-b084-bc0e0c8e3800
* lots of extremely minor fixesSegher Boessenkool2001-12-201-2/+2
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@2867 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Added suggested public API exposure for regenerating checksum.Monty2001-11-241-15/+23
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@2405 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Finally make the CRC lookup table a static initializer, like it alwaysMonty2001-11-241-21/+70
| | | | | | | | | should have been. Monty git-svn-id: http://svn.xiph.org/trunk/ogg@2402 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Fix to ogg_page_packets; it was looking for the wrong marker.Monty2001-11-221-2/+2
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@2397 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Fixed another missing _ogg_ on a free() call, pointed out by Warren Spitz.Mike Smith2001-11-151-2/+2
| | | | | | | Forgot to check libogg when I was checking for these yesterday... git-svn-id: http://svn.xiph.org/trunk/ogg@2372 0101bb08-14d6-0310-b084-bc0e0c8e3800
* sizeof() cleanup.Segher Boessenkool2001-10-021-19/+18
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@2106 0101bb08-14d6-0310-b084-bc0e0c8e3800
* optimization when using peek as a packet detectorMonty2001-05-241-1/+5
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@1455 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Decided to alter behavior of packetpeek slightly:Monty2001-05-241-5/+3
| | | | | | | | | | | | | | packetpeek can report -1 indicating a hole in the data (not really an error). Previously, packetout would have to be called to clear the hole; now, the hole is cleared by packetpeek. That is, the change is that ogg_stream_packetpeek must be followed by a call to ogg_stream_packetout(state,NULL) to continue advancing forward only if packetpeek returned a packet. git-svn-id: http://svn.xiph.org/trunk/ogg@1454 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Minor API additions; none break compatability.Monty2001-05-241-21/+42
| | | | | | | | | | | | | | added ogg_stream_packetpeek; returns the next packet from the stream stste without removing it from the stream. ogg_stream_packetout can now be passed a NULL packet pointer; in this case it removes the packet at the head of the stream and drops it on the floor. Monty git-svn-id: http://svn.xiph.org/trunk/ogg@1453 0101bb08-14d6-0310-b084-bc0e0c8e3800
* final beta 4 commitMonty2001-02-261-5/+5
| | | | | | | | change to BSD license version update git-svn-id: http://svn.xiph.org/trunk/ogg@1333 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Update copyright dates.Monty2001-02-021-4/+3
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@1242 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Added vorbis_commentheader_out() to vorbisMike Smith2001-01-181-1/+6
| | | | | | | | | Added ogg_packet_clear to ogg Updated vcedit.c to use them. There's now enough source there to build a working and useful comment editor. git-svn-id: http://svn.xiph.org/trunk/ogg@1172 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Also need defines for _ogg_freeMonty2000-11-131-9/+9
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@1053 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Merge branch_beta3 onto the mainline.Monty2000-11-051-24/+24
| | | | | | | Monty git-svn-id: http://svn.xiph.org/trunk/ogg@989 0101bb08-14d6-0310-b084-bc0e0c8e3800
* cut-n-paste typoMonty2000-10-101-5/+1
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@722 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Added 'ogg_page_packets()' call. See source for comment documentation.Monty2000-10-101-1/+32
| | | | | | | Monty git-svn-id: http://svn.xiph.org/trunk/ogg@721 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Where was ogg_sync_destroy... silly xiphmont :)Jack Moffitt2000-09-281-1/+9
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@703 0101bb08-14d6-0310-b084-bc0e0c8e3800
* ogg_stream_eof -> ogg_stream_eosJack Moffitt2000-09-261-2/+2
| | | | git-svn-id: http://svn.xiph.org/trunk/ogg@691 0101bb08-14d6-0310-b084-bc0e0c8e3800
* changed all instances of "frameno" to "granulepos"Jack Moffitt2000-09-261-10/+10
| | | | | | | jack. git-svn-id: http://svn.xiph.org/trunk/ogg@687 0101bb08-14d6-0310-b084-bc0e0c8e3800
* Initial revisionJack Moffitt2000-09-031-0/+1622
git-svn-id: http://svn.xiph.org/trunk/ogg@618 0101bb08-14d6-0310-b084-bc0e0c8e3800