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

bcoudurier subversion at mplayerhq.hu
Sat Jun 2 13:26:24 CEST 2007


Author: bcoudurier
Date: Sat Jun  2 13:26:24 2007
New Revision: 213

Log:
use av_flt2int, decoding actually works now, need to figure out the cliping stuff

Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Sat Jun  2 13:26:24 2007
@@ -79,7 +79,7 @@ static inline int16_t LTP_ROUND(float x)
 }
 
 static inline uint16_t F2U16(float x) {
-    int32_t tmp = ((int32_t*)&x)[0];
+    int32_t tmp = av_flt2int(x);
     if (tmp & 0xf0000) {
         if (tmp > 0x43c0ffff) tmp = 0xFFFF;
         else                  tmp = 0;



More information about the FFmpeg-soc mailing list