Skip to content

M4AReader: Parser improvements#426

Merged
mondain merged 1 commit intoRed5:mainfrom
kdkd:cherry-pick-1cb28dd-20251128-162133
Dec 11, 2025
Merged

M4AReader: Parser improvements#426
mondain merged 1 commit intoRed5:mainfrom
kdkd:cherry-pick-1cb28dd-20251128-162133

Conversation

@kdkd
Copy link
Copy Markdown

@kdkd kdkd commented Nov 28, 2025

Commit from kdkd fork 1cb28dd

M4AReader: Frames are 0 indexed not 1 indexed, so the first frame was always dropped and the stream would potentially end one frame early.

If passed a null file, throw an exception and bail out instead of trying to continue.

hasMoreTags() ignored the firstTags queue (metadata/decoder-config). If
frame analysis fails or yields zero frames, callers would see false and never
receive the metadata/config tags that were prepared.

The reader actually parses .f4a, .m4a and .mp4 files, but the extensions the service
advertised accepting included .aac instead of .mp4, which didn't actually work.


… always dropped

and the stream would potentially end one frame early.

If passed a null file, throw an exception and bail out instead of trying to continue.

hasMoreTags() ignored the firstTags queue (metadata/decoder-config).  If
frame analysis fails or yields zero frames, callers would see false and never
receive the metadata/config tags that were prepared.

The reader actually parses .f4a, .m4a and .mp4 files, but the extensions the service
advertised accepting included .aac instead of .mp4, which didn't actually work.
@mondain mondain merged commit 6401fbd 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