[PR #14082] [MERGED] Reject invalid replaygain tag value #13827

Closed
opened 2026-02-07 07:19:51 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/14082
Author: @gnattu
Created: 5/8/2025
Status: Merged
Merged: 5/9/2025
Merged by: @crobibero

Base: masterHead: reject-invalid-gain-value


📝 Commits (1)

  • 9aec9c0 Reject invalid replaygain tag value

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 MediaBrowser.Providers/MediaInfo/AudioFileProber.cs (+1 -1)

📄 Description

In .NET, float.TryParse("NaN", NumberStyles.Float, CultureInfo.InvariantCulture, out var value) returns true and value will be float.NaN.

Only accept finite values for replaygain tag.

Changes

Issues

Fixes #13290


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/14082 **Author:** [@gnattu](https://github.com/gnattu) **Created:** 5/8/2025 **Status:** ✅ Merged **Merged:** 5/9/2025 **Merged by:** [@crobibero](https://github.com/crobibero) **Base:** `master` ← **Head:** `reject-invalid-gain-value` --- ### 📝 Commits (1) - [`9aec9c0`](https://github.com/jellyfin/jellyfin/commit/9aec9c0584c17a828b9d01dca230fc20d44cf1b0) Reject invalid replaygain tag value ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `MediaBrowser.Providers/MediaInfo/AudioFileProber.cs` (+1 -1) </details> ### 📄 Description In .NET, `float.TryParse("NaN", NumberStyles.Float, CultureInfo.InvariantCulture, out var value)` returns `true` and value will be `float.NaN`. Only accept finite values for replaygain tag. <!-- Ensure your title is short, descriptive, and in the imperative mood (Fix X, Change Y, instead of Fixed X, Changed Y). For a good inspiration of what to write in commit messages and PRs please review https://chris.beams.io/posts/git-commit/ and our documentation. --> **Changes** <!-- Describe your changes here in 1-5 sentences. --> **Issues** <!-- Tag any issues that this PR solves here. ex. Fixes # --> Fixes #13290 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 07:19:51 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#13827