Skip to content

Detect M4A as audio/mp4 - #369

Merged
anbuzin merged 1 commit into
mainfrom
detect-m4a-audio
Nov 18, 2026
Merged

anbuzin merged 1 commit into
mainfrom
detect-m4a-audio

Conversation

@anbuzin

@anbuzin anbuzin commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

Our M4A check looked for ftyp at the start of the file, but it comes after the four-byte box size. ai.file_part now labels files with the M4A brand as audio/mp4 instead of video/mp4, and Gateway transcription no longer labels them as WAV. MP4 video is unchanged.

Match the M4A major brand after the ftyp marker at its actual offset.
Generic file parts and direct audio detection now identify M4A data as
audio/mp4 instead of video/mp4 or an unknown audio format.
@anbuzin anbuzin added the fix Bug fix label Nov 17, 2026
@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ai-python Ready Ready Preview, v0 Nov 17, 2026 11:53pm UTC

@anbuzin
anbuzin merged commit 88bfbcc into main Nov 18, 2026
14 checks passed
@anbuzin
anbuzin deleted the detect-m4a-audio branch November 18, 2026 18:54

This branch was successfully deployed

1 active deployment
Preview — bc8e7083 Deployed Nov 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants