summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-02-28 21:31:07 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-02-28 21:32:24 +0100
commitffb7d7195be6a4f25e81600a2a6a6dadd2a11e18 (patch)
tree036394ddf73be5a506c862ed758154598bad43d1 /libavcodec
parent747b0337e70b99bed24c440e35bd14b33e1c2d99 (diff)
avcodec/dcadec: use brackets to ensure that no slow division is used
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/dcadec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c
index 756e53f37e..0c7b6e7d91 100644
--- a/libavcodec/dcadec.c
+++ b/libavcodec/dcadec.c
@@ -1373,7 +1373,7 @@ static int dca_subsubframe(DCAContext *s, int base_channel, int block_index)
else if (s->predictor_history)
sum += adpcm_vb[s->prediction_vq[k][l]][n - 1] *
s->subband_samples_hist[k][l][m - n + 4];
- subband_samples[k][l][m] += sum * 1.0f / 8192;
+ subband_samples[k][l][m] += sum * (1.0f / 8192);
}
}
}