XIO

xWire

Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.

Xiph.Org activity

Jean-Marc Valin commented on merge request !216 at Xiph.Org / Opus

In addition to the minor 16-bit issue above, see if this AI-based review item makes sense or not: Missing return; / else causes double-increment in opus_ext_cursor_advance (extensions.c): When a frame has initial_extensions and no iterator extensions (arr_max_idx == iter_max_idx), advancing past the last array element increments cur->curr_idx to arr_max_idx at line 523, fails both inner ifs, and falls through to line 534 to increment cur->curr_idx a second time to arr_max_idx + 1. Currently…

Timothy B. Terriberry closed merge request !212: Ignore duplicate short extensions. at Xiph.Org / Opus

We also still convert extension repacketization to be iterator-based, as it avoids the need to guard against stack overflow, which is still possible even with 1-byte extensions (a 20 kB input packet can still produce 21,424 extensions, which requires 334 kB of extension descriptors, which is larger than the pseudostack). Addresses feedback from previous version: Uses stack allocations for the iterators in the repacketizer, removes support for generating extensions for 0 frames (to avoid…

Timothy B. Terriberry commented on merge request !212 at Xiph.Org / Opus

1a is a TOCTOU error (tot_size changed between the first and second tot_size < maxlen check). Easy enough to fix, although I don't think it's actually possible to reach via the public API (you can either try to shrink the packet or add padding, but not both at the same time). 1b occurs because the input packet has padding, so we assume there might be extensions in it, try to make a Code 3 packet, and fail because maxlen == 1. If the buffer were large enough, we would have noticed there were no…

Timothy B. Terriberry opened merge request !216: Ignore duplicate short extensions. at Xiph.Org / Opus

We also still convert extension repacketization to be iterator-based, as it avoids the need to guard against stack overflow, which is still possible even with 1-byte extensions (a 20 kB input packet can still produce 21,424 extensions, which requires 334 kB of extension descriptors, which is larger than the pseudostack). Addresses feedback from previous version: caches the result of the tot_size < maxlen check used to determine if padding is needed, and delays generation of any Code 3 packet…

Jean-Marc Valin commented on merge request !212 at Xiph.Org / Opus

There seems to be a few issues with the padding. Here's a small test program demonstrating it: #include #include "opus_private.h" int main(void) { /* 1-frame Code 3 packet, 0-byte frame, 1 byte of 0x00 padding (0 exts). Unpadded Code 0 size = 1 byte; unpadded Code 3 size = 2 bytes. */ static const unsigned char pkt[4] = { 0xE3, 0x41, 0x01, 0x00 }; unsigned char out[4]; OpusRepacketizer rp; opus_int32 ret; opus_repacketizer_init(&rp); opus_repacketizer_cat(&rp, pkt, sizeof(pkt)); /* Bug 1a:…

Jean-Marc Valin closed merge request !204: Fix sub-packet extension slicing in repacketizer at Xiph.Org / Opus

opus_repacketizer_cat() stores a multi-frame packet's padding only at its starting frame index, so opus_repacketizer_out_range() starting its scan at begin missed extensions from multi-frame packets starting before begin that overlap [begin, end), and failed to filter out extensions falling outside [begin, end) before renumbering frame indices. Scan from frame 0 for any packet whose frame span overlaps [begin, end), and filter parsed extensions to [begin, end) before shifting frame numbers by…

Tristan Matthews accepted merge request !72: meson: make fixed-point-debug real and stop downloading checkasm by default at Xiph.Org / SpeexDSP

Fixed-point debug -Dfixed-point-debug=enabled defined FIXED_POINT_DEBUG, which nothing reads, so the option (and its CI job) built ordinary fixed-point code. It now defines FIXED_DEBUG. That exposed a compile error: the resampler uses SATURATE32PSHR, which fixed_debug.h never defined. Added, identical to the fixed_generic.h version. This also fixes autotools --enable-fixed-point-debug. tests option tests defaulted to enabled with a git fallback, so a plain meson setup from a release tarball…

Mark Harris commented on merge request !214 at Xiph.Org / Opus

In a SILK/Hybrid to CELT transition, if the redundancy is omitted (not enough space), then neither the frame that would have had the redundancy nor the first CELT frame will be included. There also appears to be an existing bug in this situation, in that the first CELT frame will start with stale encoded audio and prediction enabled because st->prev_mode will already be MODE_CELT_ONLY even though the CELT encoder was not reset or fed any audio yet. In addition to mode switches, mode_switch will…

lpi opened issue #2412: SILK NEON: unroll the delayed-decision state-lane copy (~5% faster encoding at complexity 8-10 on AArch64) at Xiph.Org / Opus

When the NEON delayed-decision quantizer replaces its worst state with the best one, silk_noise_shape_quantizer_del_dec_neon() copies one lane of the [row][NEON_MAX_DEL_DEC_STATES] state arrays one row at a time (silk/arm/NSQ_del_dec_neon_intr.c, the ptr[ j ][ RDmax_ind ] = ptr[ j ][ RDmin_ind ] loop). Unrolling that loop by four, with the existing loop kept for the remainder, makes the encoder measurably faster on AArch64: for( j = 0; j + 3 < numOthers; j += 4 ) { ptr[ j ][ RDmax_ind ] = ptr[…

lpi opened issue #2410: Pitch lag in `compute_frame_features()` is not clamped (same expression as the FARGAN period fixed in 28796b57) at Xiph.Org / Opus

Summary compute_frame_features() in dnn/lpcnet_enc.c converts the pitch DNN output to an integer lag and reads 160 samples at &lp_buf[PITCH_MAX_PERIOD - pitch] without range-checking the lag. 28796b57 ("Clamp the FARGAN pitch period to the pitch buffer range") clamped the identical expression in fargan.c; this third copy was left as is. With the shipped model this is not reachable (bound below), so this is a consistency and hardening fix, not a live bug. Affected versions Builds with deep PLC…

lpi opened issue #2411: `opus_packet_has_lbrr()` reads the TOC byte before checking `len` at Xiph.Org / Opus

Summary opus_packet_has_lbrr(packet, 0) reads packet[0] even though the caller said the packet is empty. That is a one-byte read past the caller's buffer. For a CELT-only TOC value the function then returns 0 without ever looking at len. Affected versions v1.5 and later (since 4402b00f), including v1.6.1 and current main (checked at 51bd2e64, v1.6.1 and ba1d664c). Description Current main (ba1d664c), src/opus_decoder.c: :1337: packet_mode = opus_packet_get_mode(packet); reads packet[0]. Lines…

lpi opened issue #2409: Repacketizer copies an unbounded number of padding extensions to the stack (`opus_repacketizer_out*`, `opus_packet_pad`) at Xiph.Org ...

Summary opus_repacketizer_out_range_impl() counts all extensions in the padding of the packets it holds and allocates an opus_extension_data array of that size on the stack (ALLOC, i.e. VLA or alloca). Since the "Repeat These Extensions" indicator was added, the number of extensions is no longer bounded by the padding size. A single 48-frame packet can describe about 48 extensions per padding byte. On 64-bit builds that is about 1.1 kB of stack per byte of padding: packet size extensions stack…

Carlo Bramini opened issue #2311: CMake: add option to install ogg.m4 at Xiph.Org / Ogg

Add INSTALL_ACLOCAL_M4_MODULE option to CMakeLists.txt. This option allows installing ogg.m4 into ${CMAKE_INSTALL_DATADIR}/aclocal, matching the autotools build, so projects using AM_PATH_OGG will work with a CMake-built libogg. Default value is OFF, so no change to current behaviour if not used. I'm attaching this tiny patch to this issue because forking the project doesn't seem to be possible, since I was blocked by "Limit reached You cannot create projects in your personal namespace. Contact…

SotaTakeda opened issue #2408: SILK/Hybrid encoder in CBR can produce streams that decode with growing level and clip on steady tones (1.5.2, 1.6.1 and curre...

Summary For some steady sine tones at a modest, constant level (peak 2500 of 32767), opus_demo in CBR mode produces a valid stream that decodes to a signal whose level grows over a few frames and clips at full scale. With VBR (the default) the same inputs decode normally in our tests. This reproduces on 1.5.2, 1.6.1 and current main (fed7c79c, 2026-11-24), which includes the change made for GitHub issue #382. It is much more frequent with the fixed-point build than with the floating-point…