OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
747b033
)
avcodec/dcadec: use brackets to ensure that no slow division is used
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 28 Feb 2014 20:31:07 +0000
(21:31 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 28 Feb 2014 20:32:24 +0000
(21:32 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dcadec.c
patch
|
blob
|
history
diff --git
a/libavcodec/dcadec.c
b/libavcodec/dcadec.c
index
756e53f
..
0c7b6e7
100644
(file)
--- 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)
;
}
}
}