mirror of
https://github.com/taglib/taglib.git
synced 2026-06-14 02:09:27 -04:00
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:
committed by
GitHub
parent
a7c0b53f7a
commit
3869aa189f
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user