Skip to content

Commit 40ce8d6

Browse files
committed
Update the libopus submodule
Also do the changes locally that upstream did
1 parent ed41ffb commit 40ce8d6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

libopus

Submodule libopus updated from 1b9be1a to 43dfdc0

werk/src/celt/entdec.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -266,14 +266,12 @@ The bits must have been encoded with ec_enc_uint().
266266
No call to ec_dec_update() is necessary after this call.
267267
268268
* `ft`: The number of integers that can be decoded (one more than the max).
269-
This must be at least one, and no more than `2**32-1`.
269+
This must be at least 2, and no more than `2**32-1`.
270270
271271
Return: The decoded bits.
272272
*/
273273
pub extern fn ec_dec_uint(this :&mut ec_dec, mut ft :u32) -> u32 {
274274
// In order to optimize EC_ILOG(), it is undefined for the value 0.
275-
// TODO is this ^v still relevant?? If yes, the requirements
276-
// for ft need to be updated.
277275
assert!(ft > 1);
278276
ft -= 1;
279277
let mut ftb = ilog(ft);

werk/src/celt/lpc.rs

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ pub extern fn celt_fir_c(x :* const v16, num :* const v16, y :* mut v16,
6161
let ord = ord as usize;
6262
let n = n as usize;
6363

64+
assert_ne!(x, y);
65+
6466
let num = unsafe {
6567
slice::from_raw_parts(num, ord)
6668
};

0 commit comments

Comments
 (0)