summaryrefslogtreecommitdiffstats
path: root/apps/codecs/libfaad/decoder.c
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2005-11-02 19:23:27 +0000
committerThom Johansen <thomj@rockbox.org>2005-11-02 19:23:27 +0000
commit36612151349302d637ee22131761a60df9f7a2f7 (patch)
tree7d89f24e2ef73468d01c890d8b30b0420a55e5a1 /apps/codecs/libfaad/decoder.c
parenta8b9fd1cf896ecaa826227ae19e39ec9007102b3 (diff)
downloadrockbox-36612151349302d637ee22131761a60df9f7a2f7.tar.gz
rockbox-36612151349302d637ee22131761a60df9f7a2f7.tar.bz2
rockbox-36612151349302d637ee22131761a60df9f7a2f7.zip
Better place for EMAC init.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7733 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libfaad/decoder.c')
-rw-r--r--apps/codecs/libfaad/decoder.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/codecs/libfaad/decoder.c b/apps/codecs/libfaad/decoder.c
index a86b6dde8b..10d97952bd 100644
--- a/apps/codecs/libfaad/decoder.c
+++ b/apps/codecs/libfaad/decoder.c
@@ -95,6 +95,10 @@ NeAACDecHandle NEAACDECAPI NeAACDecOpen(void)
uint8_t i;
NeAACDecHandle hDecoder = NULL;
+ #if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
+ coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE);
+ #endif
+
if ((hDecoder = (NeAACDecHandle)faad_malloc(sizeof(NeAACDecStruct))) == NULL)
return NULL;
@@ -318,10 +322,6 @@ int8_t NEAACDECAPI NeAACDecInit2(NeAACDecHandle hDecoder, uint8_t *pBuffer,
hDecoder->adif_header_present = 0;
hDecoder->adts_header_present = 0;
- #if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
- coldfire_set_macsr(EMAC_FRACTIONAL | EMAC_SATURATE);
- #endif
-
/* decode the audio specific config */
rc = AudioSpecificConfig2(pBuffer, SizeOfDecoderSpecificInfo, &mp4ASC,
&(hDecoder->pce));