[PR #13949] [MERGED] Fix OverflowException when scanning media with a very short duration #13779

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

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/13949
Author: @Bond-009
Created: 4/19/2025
Status: Merged
Merged: 4/19/2025
Merged by: @crobibero

Base: masterHead: singleframemjpeg


📝 Commits (1)

  • 1208a10 Fix OverflowException when scanning media with a very short duration

📊 Changes

3 files changed (+244 additions, -1 deletions)

View changed files

📝 MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs (+1 -1)
📝 tests/Jellyfin.MediaEncoding.Tests/Probing/ProbeResultNormalizerTests.cs (+34 -0)
tests/Jellyfin.MediaEncoding.Tests/Test Data/Probing/video_single_frame_mjpeg.json (+209 -0)

📄 Description

Changes
Changes to code to only attempt an average bitrate calculation when the runtime is > 1s

Issues
Fixes #13948


🔄 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/13949 **Author:** [@Bond-009](https://github.com/Bond-009) **Created:** 4/19/2025 **Status:** ✅ Merged **Merged:** 4/19/2025 **Merged by:** [@crobibero](https://github.com/crobibero) **Base:** `master` ← **Head:** `singleframemjpeg` --- ### 📝 Commits (1) - [`1208a10`](https://github.com/jellyfin/jellyfin/commit/1208a10008266bf2043c0b217a0cf164bd61fa6b) Fix OverflowException when scanning media with a very short duration ### 📊 Changes **3 files changed** (+244 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs` (+1 -1) 📝 `tests/Jellyfin.MediaEncoding.Tests/Probing/ProbeResultNormalizerTests.cs` (+34 -0) ➕ `tests/Jellyfin.MediaEncoding.Tests/Test Data/Probing/video_single_frame_mjpeg.json` (+209 -0) </details> ### 📄 Description **Changes** Changes to code to only attempt an average bitrate calculation when the runtime is > 1s **Issues** Fixes #13948 --- <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:02 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#13779