- Dec 20, 2023
-
-
- Jun 16, 2023
-
-
Jean-Marc Valin authored
-
- Jul 01, 2022
-
-
Jean-Marc Valin authored
Unlike OPUS_SET_INBAND_FEC(1), the encoder does not necessarily switch to SILK if we have music.
-
- Jul 22, 2018
-
-
Mark Harris authored
-
Mark Harris authored
clang -Wcast-align warnings with ambisonics enabled clang -Wnull-pointer-arithmetic warnings in test_opus_api.c gcc -Wimplicit-fallthrough warnings on arm msvc warning C4244 in celt_encoder.c with fixed point
-
- Oct 28, 2016
-
-
Signed-off-by:
Jean-Marc Valin <jmvalin@jmvalin.ca>
-
- Jul 04, 2016
-
-
Jean-Marc Valin authored
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.
-
- Jan 14, 2014
-
-
Ralph Giles authored
In glib 2.17 the __malloc_ptr define was removed in favour of using void* directly. Our declaration of mhook using this type for the second argument therefore rightly generates a warning on modern systems, since the type is assumed to be an int, which is too narrow to hold a pointer on 64 bit architectures. Since it was only ever a define we could use an #ifndef to define __malloc_ptr ourselves. However we only use it once, so using void* in the signature directly is cleaner. This should cause no problems on older systems where it will match either the void* or the char* (for non __STDC__ code) the define resolved to.
-
- Nov 19, 2013
-
-
Gregory Maxwell authored
-
Gregory Maxwell authored
-
- Nov 17, 2013
-
-
Gregory Maxwell authored
-
- Nov 09, 2013
-
-
Jean-Marc Valin authored
-
- Oct 12, 2013
-
-
- Jun 30, 2013
-
-
Gregory Maxwell authored
-
Gregory Maxwell authored
Also makes the CTL bad argument handling more consistent to avoid mistakes like that in the future. Also updates the variable duration docs.
-
- Dec 06, 2012
-
-
Gregory Maxwell authored
-
- Dec 04, 2012
-
-
Jean-Marc Valin authored
-
- Oct 27, 2012
-
-
Gregory Maxwell authored
As reported by Mark Warner opus_multistream_*_create were depending on the behavior of malloc(0) in order to correctly report some kinds of argument errors. Bad arguments could be incorrectly reported as allocation failures. This changes multistream to explicitly check the arguments like the single stream _create functions. The unit tests were enough to catch this on systems where malloc(0) returns NULL but didn't catch it on other systems because the later _init call would catch the bad arguments and trigger the correct error if and only if the malloc didn't return a null pointer. In multistream_encoder_init failures of the internal non-multistream init calls were not being caught and propagated. Decode didn't have this problem. This propagates the errors and adds additional tests (the multistream encoder api is sill under tested) that would have detected this error. Plus add some stronger tests for things like error==NULL for the _create functions that take a pointer for error output.
-
- Oct 11, 2012
-
-
- Sep 27, 2012
-
-
I stumbled upon the typo in README.draft, so took the opportunity to grep for common misspellings using List_of_common_misspellings.txt for hunspell.
-
- Aug 21, 2012
-
-
Gregory Maxwell authored
-
- Aug 08, 2012
-
-
Gregory Maxwell authored
-
- Jul 11, 2012
-
-
Gregory Maxwell authored
The last commit changed some of the multistream tests to use a dual-mono setup instead of a single-stereo setup. Some of the accompanying explicit valgrind checks were still setup to look for stereo streams.
-
Gregory Maxwell authored
This CTL was requested by Nicolas George for FFmpeg.
-
- Jun 01, 2012
-
-
In places where an ignored return or a null-arg is a sure indication of a bug add the GCC warning attributes. The null arg annotation is not enable for Opus itself because it will cause the compiler to optimize out some null checks. I don't trust our callers quite that much.
-
- May 18, 2012
-
-
Jean-Marc Valin authored
-
- May 16, 2012
-
-
Jean-Marc Valin authored
This reverts commit 9f407afa.
-
- Apr 24, 2012
-
-
Jean-Marc Valin authored
-
- Apr 20, 2012
-
-
Jean-Marc Valin authored
Also added 3rd clause to "master" COPYING file
-
- Nov 26, 2011
-
-
- Oct 30, 2011
-
-
Gregory Maxwell authored
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.
-
Gregory Maxwell authored
-
- Oct 28, 2011
-
-
Ralph Giles authored
Files are already compiled with -I./include, the relative path in the #include line isn't necessary.
-
Ralph Giles authored
Our arch.h makes sure it's always defined. Thanks to derf for the suggestion.
-
Ralph Giles authored
We use the __GNUC_PREREQ macro from celt/arch.h to check the required minimum gcc version. The previous check would have failed for gcc 5.n with n from 0 to 5. Thanks to pcgod for pointing out the problem and derf for pointing out we had a macro for this.
-
Ralph Giles authored
This array is only used by the malloc failure test, and defining it unconditionally creates an unused variable warning on platforms where MALLOC_FAIL isn't set.
-
Ralph Giles authored
This test only works on glibc, but the important thing is support for the __malloc_hook api, so that's what we should depend on, especially since not all glibc versions have it.
-
Ralph Giles authored
These pragmas were adding in 4.6, and earlier versions warn about them being undefined.
-
Ralph Giles authored
The glibc 2.14 NEWS file says __malloc_hook will be removed in the next release, so future-proof our use by checking for this symbol at configure time and only compiling the malloc failure tests if it is present.
-
Ralph Giles authored
This just works around the deprecation in glibc 2.14. I do worry what will happen if they follow through and remove it in 2.15.
-