fix(transcoding): report AAC streams as audio/aac instead of audio/mp4 (#5998)

The default AAC transcode emits raw ADTS (`ffmpeg ... -f adts -`), but
the MIME table mapped `.aac` to `audio/mp4`. Clients that dispatch
strictly on Content-Type could reject the stream because the declared
container did not match the payload.

`.m4a` and `.alac` stay on `audio/mp4`, since those really are MP4.

Fixes #5958

Signed-off-by: Aditya Raj Singh <aditya@bncw.in>
Co-authored-by: Deluan Quintão <deluan@navidrome.org>
This commit is contained in:
Aditya Raj Singh 2026-08-30 20:51:14 +05:30 committed by GitHub
parent b134f16fd5
commit 3867fab4da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@ types:
.ogg: audio/ogg
.oga: audio/ogg
.opus: audio/ogg
.aac: audio/mp4
.aac: audio/aac
.alac: audio/mp4
.m4a: audio/mp4
.m4b: audio/mp4