From: SoX NG <so...@fa...> - 2025-08-06 08:44:10
|
Hi again A bug has turned up in all the last releases that made sox_ng in.wav out.ogg fail always, so there are now patch releases 14.4.4.1, 14.5.1.2 and 14.6.0.4 fixing just that. 14.4.3 and 14.5.0 are OK. If you prefer to patch your existing version, it's: diff --git a/src/vorbis.c b/src/vorbis.c index a1bed232..ef5b9e2b 100644 --- a/src/vorbis.c +++ b/src/vorbis.c @@ -309,11 +309,9 @@ static int startwrite(sox_format_t * ft) /* TODO */ rate = ft->signal.rate; - if (rate) { + if (rate) lsx_fail_errno(ft, SOX_EHDR, "Error setting-up Ogg Vorbis encoder; check sample-rate & # of channels"); - return SOX_EOF; - } /* Use encoding to average bit rate of VBR as specified by the -C option */ if (ft->encoding.compression != HUGE_VAL) { which happened as part of the drive to make all failures actually fail, but the above case seems to be "oxbow code" that never actually did anything useful (lsx_fail_errno() doesn't print a message but just stores the message for future use). Versions with working ogg output are under https://codeberg.org/sox_ng/sox_ng/releases M |