aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/g726.c
diff options
context:
space:
mode:
authorMichael Niedermayer2008-06-18 21:00:44 +0000
committerMichael Niedermayer2008-06-18 21:00:44 +0000
commit428c82cbacb2f6c70378a89f2058c68802090eab (patch)
treed5640aa55399a05037edccbf38683f0b55d9eec1 /libavcodec/g726.c
parente079a1c94fcbe44a8ccde54d73667ebae26257ed (diff)
remove unneeded tr == 0
Originally committed as revision 13805 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/g726.c')
-rw-r--r--libavcodec/g726.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/g726.c b/libavcodec/g726.c
index c7d16b19b3..45848dceaf 100644
--- a/libavcodec/g726.c
+++ b/libavcodec/g726.c
@@ -231,8 +231,7 @@ static int16_t g726_decode(G726Context* c, int16_t I)
i2f(dq, &c->dq[0]);
c->dq[0].sign = I >> (c->tbls->bits - 1); /* Isn't it crazy ?!?! */
- /* Update tone detect [I'm not sure 'tr == 0' is really needed] */
- c->td = (tr == 0 && c->a[1] < -11776);
+ c->td = c->a[1] < -11776;
/* Update Ap */
c->dms += ((c->tbls->F[I]<<9) - c->dms) >> 5;