Skip to content

v1.1.1

Choose a tag to compare

@darui3018823 darui3018823 released this 15 Jun 05:38
· 140 commits to main since this release
902d3c9

v1.1.1 — Codec correctness and API polish

What's fixed

  • Fixed mono decoders handling stereo CELT/hybrid packets by decoding stereo payloads with stereo CELT state before downmixing.
  • Enforced the Opus 120 ms packet-duration limit on encode and decode paths.
  • Rejected unsupported encoder frame sizes instead of silently padding or trimming non-20 ms multiples.
  • Returned ErrBufferTooSmall from Decode instead of silently truncating output after advancing decoder state.
  • Made GetLastPacketDuration report the actual decoded packet duration.
  • Fixed mono SILK multi-frame LBRR side-symbol consumption to keep the range decoder aligned.
  • Reset CELT final-range folding seed and hardened low-budget transient fallback.
  • Fixed raw-only entropy EncodeBits flush behavior.

API additions since v1.1.0

  • Added Encoder getters for bitrate, complexity, VBR state, and application mode.
  • Exposed SetSignalType / SignalType so callers can provide voice/music hints.

Validation

  • go test ./...
  • go vet ./...

Upgrade: go get github.com/darui3018823/opus@v1.1.1