diff options
Diffstat (limited to 'apps/codecs/libfaad/decoder.c')
-rw-r--r-- | apps/codecs/libfaad/decoder.c | 8 |
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)); |