Skip to content

Commit

Permalink
0.22.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Serial-ATA committed Feb 8, 2025
1 parent 0d42d62 commit 4c5f3e2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.22.2] - 2025-02-08

Thanks, [@Lepidopteran](https://github.com/Lepidopteran) for this release!

### Fixed

* **Docs** ([PR](https://github.com/Serial-ATA/lofty-rs/pull/504)) ([PR](https://github.com/Serial-ATA/lofty-rs/pull/506)): Updated old (invalid) links
* **ID3v2** ([issue](https://github.com/Serial-ATA/lofty-rs/issues/507)) ([PR](https://github.com/Serial-ATA/lofty-rs/pull/508)): Preserve all values of `ItemKey::MusicBrainz{ArtistId, ReleaseArtistId, WorkId}`
* Previously, the fields would be written with only the *last* value in the list.

## [0.22.1] - 2025-01-11

### Changed
Expand Down Expand Up @@ -915,7 +925,8 @@ See [ogg_pager's changelog](ogg_pager/CHANGELOG.md).
### Removed
- `ErrorKind::BadExtension`

[Unreleased]: https://github.com/Serial-ATA/lofty-rs/compare/0.22.1...HEAD
[Unreleased]: https://github.com/Serial-ATA/lofty-rs/compare/0.22.2...HEAD
[0.22.2]: https://github.com/Serial-ATA/lofty-rs/compare/0.22.1...0.22.2
[0.22.1]: https://github.com/Serial-ATA/lofty-rs/compare/0.22.0...0.22.1
[0.22.0]: https://github.com/Serial-ATA/lofty-rs/compare/0.21.1...0.22.0
[0.21.1]: https://github.com/Serial-ATA/lofty-rs/compare/0.21.0...0.21.1
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ needless_return = "allow" # Explicit returns are needed from time to time
redundant_guards = "allow" # Currently broken for some cases, might enable later
into_iter_without_iter = "allow" # This is only going to fire on some internal types, doesn't matter much
struct_excessive_bools = "allow" # I have yet to find one case of this being useful
needless_continue = "allow" # All occurences of this lint are just for clarity in large loops

[workspace.lints.rustdoc]
broken_intra_doc_links = "deny"
Expand Down
4 changes: 2 additions & 2 deletions lofty/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lofty"
version = "0.22.1"
version = "0.22.2"
authors = ["Serial <[email protected]>"]
edition = "2021"
license = "MIT OR Apache-2.0"
Expand All @@ -18,7 +18,7 @@ byteorder = { workspace = true }
# ID3 compressed frames
flate2 = { version = "1.0.30", optional = true }
# Proc macros
lofty_attr = { path = "../lofty_attr" }
lofty_attr = "0.11.1"
# Debug logging
log = "0.4.22"
# OGG Vorbis/Opus
Expand Down
2 changes: 1 addition & 1 deletion lofty/src/aac/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl ADTSHeader {
// MMMOOOOO
let byte6 = header[5];

let len = (u16::from(byte4 & 0b11) << 11) | u16::from(byte5) << 3 | u16::from(byte6) >> 5;
let len = (u16::from(byte4 & 0b11) << 11) | (u16::from(byte5) << 3) | (u16::from(byte6) >> 5);
let bitrate = ((u32::from(len) * sample_rate / 1024) * 8) / 1024;

if needs_crc_skip {
Expand Down

0 comments on commit 4c5f3e2

Please sign in to comment.