[FFmpeg-cvslog] r13792 - trunk/libavcodec/g726.c

michael subversion
Tue Jun 17 01:57:12 CEST 2008


Author: michael
Date: Tue Jun 17 01:57:12 2008
New Revision: 13792

Log:
Replace i2f(0) by the actual thing done, gcc is not a optimizing compiler.
a little over 1kb smaller .o


Modified:
   trunk/libavcodec/g726.c

Modified: trunk/libavcodec/g726.c
==============================================================================
--- trunk/libavcodec/g726.c	(original)
+++ trunk/libavcodec/g726.c	Tue Jun 17 01:57:12 2008
@@ -272,11 +272,11 @@ static av_cold int g726_reset(G726Contex
 
     c->tbls = &G726Tables_pool[index];
     for (i=0; i<2; i++) {
-        i2f(0, &c->sr[i]);
+        c->sr[i].mant = 1<<5;
         c->pk[i] = 1;
     }
     for (i=0; i<6; i++) {
-        i2f(0, &c->dq[i]);
+        c->dq[i].mant = 1<<5;
     }
     c->yu = 544;
     c->yl = 34816;




More information about the ffmpeg-cvslog mailing list