summaryrefslogtreecommitdiff
path: root/libavcodec/ra288.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-07-28 10:49:14 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-07-28 10:49:14 +0000
commite7e4f476c0a7d48f65ad469b7bc5386e272160d8 (patch)
tree10cfa17cb44ce2de61fd413e1cc8519eb8e9bddf /libavcodec/ra288.c
parent993ba0518239020e22153961880e0b7c07c0e987 (diff)
Remove the now useless phase variable from context
Originally committed as revision 14456 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra288.c')
-rw-r--r--libavcodec/ra288.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c
index a9cf10fe6a..d2a45b2f00 100644
--- a/libavcodec/ra288.c
+++ b/libavcodec/ra288.c
@@ -27,7 +27,6 @@
typedef struct {
float sp_lpc[36]; ///< LPC coefficients for speech data (spec: A)
float gain_lpc[10]; ///< LPC coefficients for gain (spec: GB)
- int phase;
float sp_hist[111]; ///< Speech data history (spec: SB)
@@ -239,13 +238,12 @@ static int ra288_decode_frame(AVCodecContext * avctx, void *data,
for (x=0; x < 32; x++) {
float gain = amptable[get_bits(&gb, 3)];
int cb_coef = get_bits(&gb, 6 + (x&1));
- ractx->phase = (x + 4) & 7;
decode(ractx, gain, cb_coef);
for (y=0; y < 5; y++)
*(out++) = 8 * ractx->sp_block[4 - y];
- if (ractx->phase == 7)
+ if ((x & 7) == 3)
backward_filter(ractx);
}