From 4cd65b9d97e5fb172477b31d3dc5bc136cc6950b Mon Sep 17 00:00:00 2001 From: "roman.artiukhin" Date: Fri, 22 Dec 2023 13:40:54 +0200 Subject: Codecs: mp4: Disable SBR decoding for PP5002 - PP5022 platforms Includes ipod video (5G) and earlier models, sansa c200 and others players not capable to decode AAC-HE. Allows to play backward compatible files as AAC-LC. Change-Id: Ic9f5c0f255d9a4308c3414d402f8f27f4328ca94 --- lib/rbcodec/metadata/aac.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/rbcodec/metadata/aac.c') diff --git a/lib/rbcodec/metadata/aac.c b/lib/rbcodec/metadata/aac.c index 358b2de079..372bab716e 100644 --- a/lib/rbcodec/metadata/aac.c +++ b/lib/rbcodec/metadata/aac.c @@ -93,11 +93,13 @@ bool get_aac_metadata(int fd, struct mp3entry *entry) break; } entry->bitrate = (unsigned int)((total * entry->frequency / frames + 64000) / 128000); +#ifdef CODEC_AAC_SBR_DEC if (entry->frequency <= 24000) { entry->frequency <<= 1; entry->needs_upsampling_correction = true; } +#endif } else { -- cgit v1.2.3