summaryrefslogtreecommitdiff
path: root/apps/codecs/libfaad/sbr_syntax.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libfaad/sbr_syntax.c')
-rw-r--r--apps/codecs/libfaad/sbr_syntax.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/codecs/libfaad/sbr_syntax.c b/apps/codecs/libfaad/sbr_syntax.c
index eff26e9f46..519a37b137 100644
--- a/apps/codecs/libfaad/sbr_syntax.c
+++ b/apps/codecs/libfaad/sbr_syntax.c
@@ -826,11 +826,7 @@ static uint16_t sbr_extension(bitfile *ld, sbr_info *sbr,
826 { 826 {
827#ifdef PS_DEC 827#ifdef PS_DEC
828 case EXTENSION_ID_PS: 828 case EXTENSION_ID_PS:
829 if (!sbr->ps) 829 ret = ps_data(&sbr->ps, ld, &header);
830 {
831 sbr->ps = ps_init(get_sr_index(sbr->sample_rate));
832 }
833 ret = ps_data(sbr->ps, ld, &header);
834 830
835 /* enable PS if and only if: a header has been decoded */ 831 /* enable PS if and only if: a header has been decoded */
836 if (sbr->ps_used == 0 && header == 1) 832 if (sbr->ps_used == 0 && header == 1)