mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-13 07:02:31 -05:00
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
This commit is contained in:
parent
fc65bdab4e
commit
4cd65b9d97
7 changed files with 27 additions and 8 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -349,7 +349,10 @@ static bool read_mp4_esds(int fd, struct mp3entry* id3, uint32_t* size)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef CODEC_AAC_SBR_DEC
|
||||
//SBR_DEC is disabled so disable sbr implicit signalling
|
||||
sbr_signaled = true;
|
||||
#endif
|
||||
if (!sbr && !sbr_signaled && id3->frequency <= 24000)
|
||||
{
|
||||
/* As stated in libfaad/mp4.c AudioSpecificConfig2:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue