Revision 3e954443

View differences:

libavcodec/ac3enc.c
1379 1379
            v = 14 - log2_tab(input_samples, N);
1380 1380
            if (v < 0)
1381 1381
                v = 0;
1382
            exp_samples[i][ch] = v - 9;
1382
            exp_samples[i][ch] = v - 10;
1383 1383
            lshift_tab(input_samples, N, v);
1384 1384

  
1385 1385
            /* do the MDCT */
tests/ffmpeg.regression.ref
158 158
83f8df5d5f84480566af548bb037fceb *./data/out.wav
159 159
stddev:9330.70 PSNR:16.92 bytes:1054720
160 160
stddev:4396.13 PSNR:23.46 bytes:1052672
161
aefe11ab5067621a1c674859d6413891 *./data/a-ac3.rm
161
dd68110cb7e5388392f89d5160d3a825 *./data/a-ac3.rm
162 162
98203 ./data/a-ac3.rm
163 163
9e6e66847a568ef4f1f229b0939d2aae *./data/a-g726.wav
164 164
24268 ./data/a-g726.wav
tests/libav.regression.ref
5 5
bac6c5f50f3ca5db6e2ef6eaccf1d4f1 *./data/b-libav.asf
6 6
342967 ./data/b-libav.asf
7 7
./data/b-libav.asf CRC=0x94d219de
8
5275686385346789108ec4fdf06ecef8 *./data/b-libav.rm
8
3f63f396a3e9f08cdb5c30b4ef3a2436 *./data/b-libav.rm
9 9
360269 ./data/b-libav.rm
10 10
90784a1b9589095f20fc6bcc0cc23cc4 *./data/b-libav.mpg
11 11
387072 ./data/b-libav.mpg
tests/rotozoom.regression.ref
158 158
83f8df5d5f84480566af548bb037fceb *./data/out.wav
159 159
stddev:9330.70 PSNR:16.92 bytes:1054720
160 160
stddev:4396.13 PSNR:23.46 bytes:1052672
161
aefe11ab5067621a1c674859d6413891 *./data/a-ac3.rm
161
dd68110cb7e5388392f89d5160d3a825 *./data/a-ac3.rm
162 162
98203 ./data/a-ac3.rm
163 163
9e6e66847a568ef4f1f229b0939d2aae *./data/a-g726.wav
164 164
24268 ./data/a-g726.wav

Also available in: Unified diff