summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;