Xiph.Org activity
Jean-Marc Valin pushed new project branch exp_dtx_mode_switch1b at Xiph.Org / Opus
Jean-Marc Valin (69cf20ba) at 26 Nov 15:42 Restart CELT after a SILK DTX gap ... and 2 more commits
Shubham Chakraborty opened issue #2340: Fix C23 build on non-glibc libc (musl) and use system getopt_long when available. at Xiph.Org / Vorbis tools
`share/getopt.c` and `share/getopt1.c` currently only define `ELIDE_CODE` when `__GLIBC__ >= 2`, and `include/getopt.h` shadows system `` via `-I$(top_srcdir)/include`. On non-glibc C libraries that still provide `getopt_long()` (such as musl), `ELIDE_CODE` and `__GNU_LIBRARY__` remain unset. As a result, `vorbis-tools` compiles its bundled legacy `getopt` implementation (`extern char *getenv ();` plus K&R function definitions) and `include/getopt.h` declares unprototyped `extern int getopt…
theali3n opened issue #2539: 2.5.0: <yp-directory> listen-socket option lost after config reload (dangling pointer), YP listenurl falls back to http at Xiph....
With a virtual listen socket referenced from , YP listings correctly advertise https://host:4000/mount after a start. After any config reload (SIGHUP or /admin/reloadconfig), the next YP add logs Failure to find listen socket with ID "server", using default (garbage ID) and advertises http instead. The cause is in yp_recheck_config() in src/yp.c: server->listen_socket_id = yp->listen_socket_id; stores a pointer into the config, which is freed on reload. The fix is to strdup it, update it for…
Jean-Marc Valin pushed new project branch exp_dtx_mode_switch1 at Xiph.Org / Opus
Jean-Marc Valin (b0fb2e1b) at 26 Nov 00:37 Don't let DTX drop a frame that switches mode ... and 1 more commit
Benson Muite opened issue #2407: Opus fails to build on mingw with sse intrinsics at Xiph.Org / Opus
silk/x86/NSQ_sse4_1.c: In function 'silk_NSQ_sse4_1': silk/x86/NSQ_sse4_1.c:255:13: error: implicit declaration of function 'silk_noise_shape_quantizer'; did you mean 'silk_noise_shape_quantizer_10_16_sse4_1'? [-Wimplicit-function-declaration] 255 | silk_noise_shape_quantizer( NSQ, psIndices->signalType, x_sc_Q10, pulses, pxq, sLTP_Q15, A_Q12, B_Q14, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | silk_noise_shape_quantizer_10_16_sse4_1 silk/x86/NSQ_sse4_1.c:255:13: warning: nested extern declaration of…
Timothy B. Terriberry commented on merge request !52 at Xiph.Org / Vorbis
Sorry, I just need more hours in the day. Between the IETF meeting last week, other paid work coming due, and the holidays this week, I have had to put this on the back burner. I will get there, just please have some patience.
Ana Bobillo commented on merge request !52 at Xiph.Org / Vorbis
Hi @tterribe, checking in on this MR — the three v2 commits from #2362 (ov_time_tell(), ov_pcm_seek_page(), and _ov_getlap(), including the updated mem_read() in test_vorbisfile.c) still apply cleanly on main with CI passing. Please let me know if anything else is needed for review.
Benson Muite opened merge request !213: Use same name for static declaration at Xiph.Org / Opus
Prevent build errors in having different definitions of properties of opus_custom_encoder_get_size May close #2406
Benson Muite opened issue #2406: Build fails on mingw due to non matching function declaration at Xiph.Org / Opus
``` celt/celt_encoder.c:154:26: error: static declaration of 'opus_custom_encoder_get_size' follows non-static declaration 154 | OPUS_CUSTOM_NOSTATIC int opus_custom_encoder_get_size(const CELTMode *mode, int channels) | ^\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~ In file included from celt/celt.h:40, from celt/celt_encoder.c:40: ./include/opus_custom.h:139:55: note: previous declaration of 'opus_custom_encoder_get_size' with type 'int(const OpusCustomMode *, int)' 139 |…
Jean-Marc Valin pushed to project branch main at Xiph.Org / Opus
Jean-Marc Valin (fed7c79c) at 24 Nov 19:10 Update meson to match 316c675f
Jean-Marc Valin pushed new project branch exp_meson_fix1 at Xiph.Org / Opus
Jean-Marc Valin (fed7c79c) at 24 Nov 18:23 Update meson to match 316c675f
Jasper Cheng commented on merge request !52 at Xiph.Org / Vorbis
Please disregard the patch attached to my note above: when samples were trimmed at the end of the stream, it moves the data too far, so the lap is no longer contiguous. A corrected version, which leaves that case as it is, is at https://github.com/xiph/vorbis/pull/139.
Jean-Marc Valin pushed to project branch main at Xiph.Org / Opus
Jean-Marc Valin (9bac46c8) at 24 Nov 16:14 projection: make the highest ambisonic order a build-time option ... and 1 more commit
Timothy B. Terriberry closed merge request !211: 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).
Timothy B. Terriberry opened 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…
Tristan Matthews deleted project branch jitter-destroy-callback-ownership at Xiph.Org / SpeexDSP
Tristan Matthews (965d9dd9) at 23 Nov 15:09
Tristan Matthews pushed to project branch main at Xiph.Org / SpeexDSP
Tristan Matthews (965d9dd9) at 23 Nov 15:09 build: run testjitter from make check and meson test ... and 4 more commits
Tristan Matthews accepted merge request !71: jitter: fix packet ownership with a destroy callback at Xiph.Org / SpeexDSP
Restores the 1.2.1 behaviour that 9db8590b changed, and fixes a real leak in the same area. Regression fix: jitter_buffer_get() and jitter_buffer_get_another() empty the slot again when a destroy callback is set. Since 9db8590b, get_another() returned the just-returned packet on every call, and callers that free the data they receive (as 1.2.1 required) freed it twice. Leak fix: jitter_buffer_put() now calls the destroy callback on a packet that is too late to insert. Previously it was neither…
Tristan Matthews commented on merge request !71 at Xiph.Org / SpeexDSP
Had we released as is, this would've triggered a double free in e.g https://github.com/meetecho/janus-gateway which uses the jitterbuffer.
Tristan Matthews commented on merge request !71 at Xiph.Org / SpeexDSP
Yes. A custom deleter is still called for every packet the buffer drops or still holds at reset/destroy, and now also for packets that are too late to be inserted, which used to leak prior to this MR. What changed relative to your commit is that packets returned by jitter_buffer_get()/get_another() are owned by the caller again, as in 1.2.1, so the buffer doesn't call the deleter on those (this is now documented in speex_jitter.h). That is what e.g. Mumble's AudioOutputSpeech.cpp already does.…
Robert Adam commented on merge request !71 at Xiph.Org / SpeexDSP
Does this keep custom deleters working?
Jasper Cheng opened issue #2368: vorbis_synthesis_blockin(): signed overflow on granule positions near the int64 limits at Xiph.Org / Vorbis
vorbis_synthesis_blockin() updates the decoder's position from the packet's granulepos, which comes straight from the Ogg page header, with signed 64-bit arithmetic and no range check: v->granulepos+=ci->blocksizes[v->lW]/4+ci->blocksizes[v->W]/4; /* block.c:907 */ ... long extra=v->granulepos-vb->granulepos; /* block.c:911 */ A granule position near INT64_MAX (followed by packets with -1) overflows the addition, and a very negative one overflows the subtraction. Both are undefined behavior; a…
Jasper Cheng opened issue #2367: ov_open()/ov_fopen() call _fseek64_wrap through an incompatible function type (UBSan -fsanitize=function) at Xiph.Org / Vorbis
ov_open() fills ov_callbacks with static int _fseek64_wrap(FILE *f,ogg_int64_t off,int whence){ ... } ... ov_callbacks callbacks = { (size_t (*)(void *, size_t, size_t, void *)) fread, (int (*)(void *, ogg_int64_t, int)) _fseek64_wrap, ... and the library then calls seek_func as int (*)(void *, ogg_int64_t, int). Calling a function through a pointer to an incompatible function type is undefined behavior in C. clang's -fsanitize=function (part of -fsanitize=undefined in current clang) reports it…
Jasper Cheng commented on merge request !52 at Xiph.Org / Vorbis
A note on the third item, in case it helps: the negative count comes from vorbis_synthesis_lapout() itself, not only from the state a failed seek leaves behind. The step that makes the buffer contiguous (the (v->lW^v->W)==1 / short-short branches) moves the data by an amount that depends only on the block sizes. When a single block has been decoded, vorbis_synthesis_blockin() already leaves the data ending at n1, so it is moved again, pcm_returned goes past n1+n, and the result is negative. A…
Jasper Cheng opened issue #2366: vorbisfile: three seeking problems in chained files (single-page link skipped, ov_pcm_seek past the end, ov_raw_seek across ...
Three problems in vorbisfile.c with chained files, all in the seek paths. Tested on main (1b75110b); the attached reproducer (see README.md in it) builds small chained files in memory from five short streams and opens them with ov_open_callbacks() (seekable). 1. A link whose audio is a single page is skipped. ov_raw_seek() sets firstflag only when ready_state is below STREAMSET (when it meets the first page of the link). If the link's only audio page also has eos, that page is treated as "last…