1
0
Fork 0
forked from len0rd/rockbox

libfaad: Move PS related variables to sbr_info struct. This allows dynamic allocation including error handling.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29857 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Andree Buschmann 2011-05-11 18:52:05 +00:00
parent df7deee00f
commit 0e7c04e57d
5 changed files with 26 additions and 45 deletions

View file

@ -826,11 +826,7 @@ static uint16_t sbr_extension(bitfile *ld, sbr_info *sbr,
{
#ifdef PS_DEC
case EXTENSION_ID_PS:
if (!sbr->ps)
{
sbr->ps = ps_init(get_sr_index(sbr->sample_rate));
}
ret = ps_data(sbr->ps, ld, &header);
ret = ps_data(&sbr->ps, ld, &header);
/* enable PS if and only if: a header has been decoded */
if (sbr->ps_used == 0 && header == 1)