Skip to content

MP3Reader: Handle corrupt MP3 files better.#425

Merged
mondain merged 1 commit intoRed5:mainfrom
kdkd:cherry-pick-6b02466-20251128-162053
Dec 11, 2025
Merged

MP3Reader: Handle corrupt MP3 files better.#425
mondain merged 1 commit intoRed5:mainfrom
kdkd:cherry-pick-6b02466-20251128-162053

Conversation

@kdkd
Copy link
Copy Markdown

@kdkd kdkd commented Nov 28, 2025

Commit from kdkd fork 6b02466

MP3Reader: Handle corrupt MP3 files better.

If ID3 parsing fails, or does not contain sample rate data don't divide by zero.

If the MP3 file is completely empty with no frames, also don't divide by zero after counting frames.

If EOF is reached while streaming an MP3 file, don't get stuck in an infinite loop trying to seek past EOF.


If ID3 parsing fails, or does not contain sample rate data don't divide by zero.

If the MP3 file is completely empty with no frames, also don't divide by zero after counting frames.

If EOF is reached while streaming an MP3 file, don't get stuck in an infinite loop trying to seek past EOF.
@mondain mondain merged commit cdc0a9e into Red5:main Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants