Commit 7eec278b authored by jbr's avatar jbr

fix random dithering of zero-bit mantissas

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10495 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 534d70a4
......@@ -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.0f;
coeffs[i] = ((av_random(&ctx->dith_state) & 0xFFFF) / 65535.0f) - 0.5f;
break;
case 1:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment