summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Artiukhin <bahusdrive@gmail.com>2024-09-21 17:29:25 +0300
committerSolomon Peachy <pizza@shaftnet.org>2024-09-21 14:51:50 -0400
commit3f3ec8273a5b1234ae2f1c9f07e250a1cdbbe378 (patch)
tree8ad4cb505667e7c1ee2f495e534fe450c25d9836
parent1be795c9b17f08e52dd29fbeeacc07ae4f0c7d26 (diff)
downloadrockbox-3f3ec8273a.tar.gz
rockbox-3f3ec8273a.zip
metadata: aac: Fix any file is treated as valid aac
Fixup for d50470bc Change-Id: Ie96a636afd3f18e03d70601628c2731cb7314483
-rw-r--r--lib/rbcodec/metadata/aac.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/rbcodec/metadata/aac.c b/lib/rbcodec/metadata/aac.c
index c5467f0422..fc83886617 100644
--- a/lib/rbcodec/metadata/aac.c
+++ b/lib/rbcodec/metadata/aac.c
@@ -132,6 +132,11 @@ bool get_aac_metadata(int fd, struct mp3entry *entry)
}
#endif
}
+ else
+ {
+ return false;
+ }
+
entry->length = (unsigned long)((entry->filesize * 8LL + (entry->bitrate >> 1)) / entry->bitrate);
return true;