[FFmpeg-cvslog] r13818 - trunk/libavcodec/g726.c
michael
subversion
Thu Jun 19 13:04:31 CEST 2008
Author: michael
Date: Thu Jun 19 13:04:31 2008
New Revision: 13818
Log:
Dont shift F[I] twice, its also clearer and smaller now.
Modified:
trunk/libavcodec/g726.c
Modified: trunk/libavcodec/g726.c
==============================================================================
--- trunk/libavcodec/g726.c (original)
+++ trunk/libavcodec/g726.c Thu Jun 19 13:04:31 2008
@@ -235,8 +235,8 @@ static int16_t g726_decode(G726Context*
c->td = c->a[1] < -11776;
/* Update Ap */
- c->dms += ((c->tbls.F[I]<<9) - c->dms) >> 5;
- c->dml += ((c->tbls.F[I]<<11) - c->dml) >> 7;
+ c->dms += (c->tbls.F[I]<<4) + ((- c->dms) >> 5);
+ c->dml += (c->tbls.F[I]<<4) + ((- c->dml) >> 7);
if (tr)
c->ap = 256;
else {
More information about the ffmpeg-cvslog
mailing list