summaryrefslogtreecommitdiff
path: root/src/repacketizer.c
Commit message (Collapse)AuthorAgeFilesLines
* Misc assertion cleanupJean-Marc Valin2018-03-271-1/+2
|
* Making calls to opus_packet_pad() on a bad packet return OPUS_INVALID_PACKETJean-Marc Valin2016-07-041-1/+3
| | | | | | | We were previously returning OPUS_BAD_ARG because the failure was only detected in opus_repacketizer_out_range_impl() rather than in opus_repacketizer_cat(). Checking the return value from opus_repacketizer_cat() also addresses the last outstanding Coverity defect.
* Fixes a warning about "conversion from '__int64' to 'int'" on MSVCJean-Marc Valin2013-12-171-2/+3
|
* Fixes unpad for multi-streamJean-Marc Valin2013-11-181-4/+9
|
* Unpad assertsTimothy B. Terriberry2013-11-181-1/+2
| | | | Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
* Fixes previous commitMark Harris2013-11-181-2/+2
| | | | Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
* Adds functions for multistream padding/unpadding and single-stream unpaddingJean-Marc Valin2013-11-181-1/+91
| | | | These are all completely untested.
* Adds packet padding that works for all codes and fixes 40/60 ms CBR.Jean-Marc Valin2013-11-131-29/+70
| | | | Padding is now handled by the repacketizer.
* Change few remaining instances of short to opus_int16Jean-Marc Valin2013-05-181-1/+1
|
* Merge commit '390c89225d'Jean-Marc Valin2012-04-241-2/+2
|\
| * s/FOUNDATION/COPYRIGHT OWNER/ in CELT code and "glue code"Jean-Marc Valin2012-04-201-2/+2
| | | | | | | | Also added 3rd clause to "master" COPYING file
* | Fixes int vs opus_int32 compile errors on C5xJean-Marc Valin2012-03-081-1/+1
|/
* Fixes the code for optional self-delimited packing to make it fit the draftGregory Maxwell2011-12-021-2/+1
| | | | This has no impact on opus_demo, test vectors, or "normal" codec operation
* Fix multistream packet corruption, implement GET_FINAL_RANGE for ↵Gregory Maxwell2011-10-301-2/+5
| | | | | | | | | | | | | | | multistream, and add many tests. Multistream encode was failing to add the length of the extra length for self-delimited packets causing corrupted output. Multistream decode was not properly handling lost frames (and potentially reading out of bounds as a result). GET_FINAL_RANGE has been implemented as the xor of the final range of all the streams in the packet. test_opus_encode now does the mono narrowband tests using dual-mono multistream.
* Gives the Opus code direct access to (non-opaque) OpusRepacketizerJean-Marc Valin2011-10-271-9/+0
| | | | | This avoids potential alignment issues with allocating a char array on the stack.
* Make repacketizer API use opus_int32 for lengths and add some additional ↵Gregory Maxwell2011-10-101-8/+12
| | | | error handling.
* Make opus_repacketizer_create handle malloc failure gracefully.Gregory Maxwell2011-10-091-1/+4
|
* Makes multi-stream encoding code use the repacketizerJean-Marc Valin2011-09-091-7/+19
|
* s/OPUS_CORRUPTED_DATA/OPUS_INVALID_PACKET/Jean-Marc Valin2011-09-061-2/+2
|
* Adds many syntactically unnecessary parentheses to silence GCC -Wparentheses.Gregory Maxwell2011-08-301-1/+1
| | | | | The object code is unchanged (except ectest). Also reenables -Wparentheses, -Wsign-compare, and the MSVC warnings.
* Using OPUS_ macros for <string.h> operationsJean-Marc Valin2011-08-301-5/+2
| | | | Removes a bunch of system #include <...> in the process
* Fixes warningsJean-Marc Valin2011-08-291-1/+1
|
* Wrapping all allocation within opus_alloc() and opus_free()Jean-Marc Valin2011-08-291-2/+3
|
* Include opus_private.h when building the repacketizer.Ralph Giles2011-08-241-0/+1
| | | | | The repacketizer uses encode_size() which is only declared in the private header.
* Use standard search path for systems headers in the repacketizer.Ralph Giles2011-08-241-2/+3
|
* encode_size() moved out of opus_encoder.cJean-Marc Valin2011-08-231-12/+1
|
* Fixed multiple bugs in the repacketizerJean-Marc Valin2011-08-101-18/+35
| | | | | | | Repacketizer now seems to work, though it doesn't yet handle unmergeable packets. Also, test_opis no longer attempt to do proper gapless at the end of the file, which was causing problems for repacketization, but also with 32 bit overflows
* Adds a test_repacketizer tool and fixes a few of the bugs in the repacketizerJean-Marc Valin2011-08-101-7/+15
| | | | Still more bugs to find
* Repacketization code (untested)Jean-Marc Valin2011-08-101-0/+182