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:
bfcf690
)
fix random dithering of zero-bit mantissas
author
Justin Ruggles
<justin.ruggles@gmail.com>
Sat, 15 Sep 2007 00:43:40 +0000
(
00:43
+0000)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Sat, 15 Sep 2007 00:43:40 +0000
(
00:43
+0000)
Originally committed as revision 10495 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/ac3dec.c
patch
|
blob
|
history
diff --git
a/libavcodec/ac3dec.c
b/libavcodec/ac3dec.c
index
66b498b
..
e59b416
100644
(file)
--- a/
libavcodec/ac3dec.c
+++ b/
libavcodec/ac3dec.c
@@
-518,7
+518,7
@@
static int get_transform_coeffs_ch(AC3DecodeContext *ctx, int ch_index, mant_gro
tbap = bap[i];
switch (tbap) {
case 0:
- coeffs[i] = ((av_random(&ctx->dith_state) & 0xFFFF)
* LEVEL_MINUS_3DB) / 32768.0
f;
+ coeffs[i] = ((av_random(&ctx->dith_state) & 0xFFFF)
/ 65535.0f) - 0.5
f;
break;
case 1: