AC3 encoding volume fix, by Justin Ruggles jruggle earthlink net.
authorBenjamin Larsson <banan@ludd.ltu.se>
Mon, 10 Apr 2006 12:12:26 +0000 (12:12 +0000)
committerBenjamin Larsson <banan@ludd.ltu.se>
Mon, 10 Apr 2006 12:12:26 +0000 (12:12 +0000)
Originally committed as revision 5281 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/ac3enc.c
tests/ffmpeg.regression.ref
tests/libav.regression.ref
tests/rotozoom.regression.ref

index 5be791c1d3104760eca9e9354ac01e2016127911..5ec8b4f5ac6ea53db60199e79fa45e4bd7aa9216 100644 (file)
@@ -1377,7 +1377,7 @@ static int AC3_encode_frame(AVCodecContext *avctx,
             v = 14 - log2_tab(input_samples, N);
             if (v < 0)
                 v = 0;
-            exp_samples[i][ch] = v - 8;
+            exp_samples[i][ch] = v - 9;
             lshift_tab(input_samples, N, v);
 
             /* do the MDCT */
index ec3441c5d36f7140e54b1258598413115025fc97..703ac10d724b70caddf466a727a0898a83a07de0 100644 (file)
@@ -150,7 +150,7 @@ stddev: 10.99 PSNR:27.30 bytes:7602176
 6956f2c5185c4edbae648c614992a14b *./data/out.wav
 stddev:9330.70 PSNR:16.92 bytes:527360
 stddev:4396.13 PSNR:23.46 bytes:526336
-4292b4f8e930e386e9c00799197615e5 *./data/a-ac3.rm
+aefe11ab5067621a1c674859d6413891 *./data/a-ac3.rm
 98203 ./data/a-ac3.rm
 9e6e66847a568ef4f1f229b0939d2aae *./data/a-g726.wav
 24268 ./data/a-g726.wav
index 49f26ff1bf3abb7d107a9a24f00a39b6bcb9c8c9..88bb54b67ed3184b80a8e9b884720a432f9f2409 100644 (file)
@@ -5,7 +5,7 @@ ffmpeg regression test
 6f4dca897d9a009009798e434fe5f651 *./data/b-libav.asf
  342967 ./data/b-libav.asf
 ./data/b-libav.asf CRC=0x41af1ed9
-4509d6cc5523484d4557b2e5f06f5157 *./data/b-libav.rm
+5275686385346789108ec4fdf06ecef8 *./data/b-libav.rm
 360269 ./data/b-libav.rm
 90784a1b9589095f20fc6bcc0cc23cc4 *./data/b-libav.mpg
  387072 ./data/b-libav.mpg
index 65dc8c30c2ab3ae95dffb7283d0b4cfd6fe1bf2b..725ea6d7c567d9c82bde5f37dbb68788d95f9099 100644 (file)
@@ -150,7 +150,7 @@ stddev:  3.44 PSNR:37.38 bytes:7602176
 6956f2c5185c4edbae648c614992a14b *./data/out.wav
 stddev:9330.70 PSNR:16.92 bytes:527360
 stddev:4396.13 PSNR:23.46 bytes:526336
-4292b4f8e930e386e9c00799197615e5 *./data/a-ac3.rm
+aefe11ab5067621a1c674859d6413891 *./data/a-ac3.rm
 98203 ./data/a-ac3.rm
 9e6e66847a568ef4f1f229b0939d2aae *./data/a-g726.wav
 24268 ./data/a-g726.wav