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:
parent
df7deee00f
commit
0e7c04e57d
5 changed files with 26 additions and 45 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue