[FFmpeg-soc] [soc]: r1933 - aac/aac.c

andoma subversion at mplayerhq.hu
Thu Feb 28 08:55:31 CET 2008


Author: andoma
Date: Thu Feb 28 08:55:30 2008
New Revision: 1933

Log:
dsputil_init() must be done before the infamous if(ac->dsp.float_to_int16 == ff_float_to_int16_c) check


Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Thu Feb 28 08:55:30 2008
@@ -819,6 +819,8 @@ static int aac_decode_init(AVCodecContex
         }
     }
 
+    dsputil_init(&ac->dsp, avccontext);
+
     /* Initialize RNG dither */
     av_init_random(0x1f2e3d4c, &ac->random_state);
 
@@ -885,7 +887,6 @@ static int aac_decode_init(AVCodecContex
         ac->kbd_short_128[i] *= 8.;
     }
     ac->mdct_ltp = NULL;
-    dsputil_init(&ac->dsp, avccontext);
 
     return 0;
 }



More information about the FFmpeg-soc mailing list