summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Artiukhin <bahusdrive@gmail.com>2024-09-23 17:43:13 +0300
committerRoman Artiukhin <bahusdrive@gmail.com>2024-09-23 17:43:13 +0300
commitff0ad4ca7dfd9b3a8afd6b4622d86f91c059cd52 (patch)
treeea6a3215778b9e2883d3a339f4c9dba3f0bb9101
parent77ff79950288d799a47c53b79f3e6da978c6c842 (diff)
downloadrockbox-ff0ad4ca7d.tar.gz
rockbox-ff0ad4ca7d.zip
metadata: aac: support .aac files with mp4 container inside
Change-Id: Id982c58184197f6b2f9eeb0cf403cc2e30a97e24
-rw-r--r--lib/rbcodec/metadata/aac.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rbcodec/metadata/aac.c b/lib/rbcodec/metadata/aac.c
index fc83886617..e36adf8f77 100644
--- a/lib/rbcodec/metadata/aac.c
+++ b/lib/rbcodec/metadata/aac.c
@@ -134,7 +134,8 @@ bool get_aac_metadata(int fd, struct mp3entry *entry)
}
else
{
- return false;
+ lseek(fd, 0, SEEK_SET);
+ return get_mp4_metadata(fd, entry);
}
entry->length = (unsigned long)((entry->filesize * 8LL + (entry->bitrate >> 1)) / entry->bitrate);