Raw AAC (ADTS) support (#508)

Detect ADTS MPEG header to use it also for AAC.

The test file empty1s.aac was generated using
ffmpeg -f lavfi -i anullsrc=r=11025:cl=mono -t 1 -acodec aac empty1s.aac

---------

Co-authored-by: Nick Shaforostov <mshaforostov@airmusictech.com>
Co-authored-by: Urs Fleisch <ufleisch@users.sourceforge.net>
This commit is contained in:
Nick Shaforostoff
2023-11-03 05:17:39 +01:00
committed by GitHub
parent a7c0b53f7a
commit 3869aa189f
8 changed files with 325 additions and 89 deletions

View File

@@ -134,7 +134,7 @@ namespace
File *file = nullptr;
if(ext == "MP3")
if(ext == "MP3" || ext == "AAC")
file = new MPEG::File(stream, ID3v2::FrameFactory::instance(), readAudioProperties, audioPropertiesStyle);
else if(ext == "OGG")
file = new Ogg::Vorbis::File(stream, readAudioProperties, audioPropertiesStyle);
@@ -410,6 +410,7 @@ StringList FileRef::defaultFileExtensions()
l.append("wv");
l.append("spx");
l.append("tta");
l.append("aac");
l.append("m4a");
l.append("m4r");
l.append("m4b");