Commit graph

20 commits

Author SHA1 Message Date
Jean-Marc Valin
ab5a049705 Merge commit '390c89225d' 2012-04-24 13:39:22 -04:00
Jean-Marc Valin
cb05e7cd96 s/FOUNDATION/COPYRIGHT OWNER/ in CELT code and "glue code"
Also added 3rd clause to "master" COPYING file
2012-04-20 16:41:42 -04:00
Jean-Marc Valin
59354a7742 Fixes int vs opus_int32 compile errors on C5x 2012-03-08 12:19:35 -05:00
Gregory Maxwell
92c896e880 Fixes the code for optional self-delimited packing to make it fit the draft
This has no impact on opus_demo, test vectors, or "normal" codec operation
2011-12-02 12:41:31 -05:00
Gregory Maxwell
afd05aca0c Fix multistream packet corruption, implement GET_FINAL_RANGE for 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.
2011-10-30 19:57:22 -04:00
Jean-Marc Valin
c8649d0e0b Gives the Opus code direct access to (non-opaque) OpusRepacketizer
This avoids potential alignment issues with allocating a char
array on the stack.
2011-10-27 22:25:33 -04:00
Gregory Maxwell
3346d88390 Make repacketizer API use opus_int32 for lengths and add some additional error handling. 2011-10-10 01:02:14 -04:00
Gregory Maxwell
756c7595dc Make opus_repacketizer_create handle malloc failure gracefully. 2011-10-09 20:28:51 -04:00
Jean-Marc Valin
131d888234 Makes multi-stream encoding code use the repacketizer 2011-09-09 13:56:09 -04:00
Jean-Marc Valin
331e9fe0fd s/OPUS_CORRUPTED_DATA/OPUS_INVALID_PACKET/ 2011-09-06 14:30:19 -04:00
Gregory Maxwell
d6335abedc Adds many syntactically unnecessary parentheses to silence GCC -Wparentheses.
The object code is unchanged (except ectest). Also reenables -Wparentheses, -Wsign-compare,
and the MSVC warnings.
2011-08-30 20:16:23 -04:00
Jean-Marc Valin
be89c39587 Using OPUS_ macros for <string.h> operations
Removes a bunch of system #include <...> in the process
2011-08-30 12:39:51 -04:00
Jean-Marc Valin
9bcfdb0d50 Fixes warnings 2011-08-29 16:25:54 -04:00
Jean-Marc Valin
07f884042e Wrapping all allocation within opus_alloc() and opus_free() 2011-08-29 15:08:51 -04:00
Ralph Giles
bed02c9205 Include opus_private.h when building the repacketizer.
The repacketizer uses encode_size() which is only declared
in the private header.
2011-08-24 00:25:44 -04:00
Ralph Giles
efef001d6d Use standard search path for systems headers in the repacketizer. 2011-08-24 00:25:44 -04:00
Jean-Marc Valin
9f555bc4e7 encode_size() moved out of opus_encoder.c 2011-08-23 02:56:12 -04:00
Jean-Marc Valin
c2d86f0639 Fixed multiple bugs in the repacketizer
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
2011-08-10 14:17:55 -04:00
Jean-Marc Valin
e8dbcb8f08 Adds a test_repacketizer tool and fixes a few of the bugs in the repacketizer
Still more bugs to find
2011-08-10 09:47:30 -04:00
Jean-Marc Valin
369553f151 Repacketization code (untested) 2011-08-10 08:54:49 -04:00