shithub: opus

Download patch

ref: 2f7a315101754f1becca9c7b253711222af4407a
parent: 4365498d48a324e8e7de0b9be90bbb843c933a74
author: Jean-Marc Valin <[email protected]>
date: Sat Jul 6 21:11:23 EDT 2013

Fixes silly fixed-point bug with the surround downmix

--- a/src/opus_multistream_encoder.c
+++ b/src/opus_multistream_encoder.c
@@ -789,7 +789,7 @@
 )
 {
    return opus_multistream_encode_native(st, opus_copy_channel_in_short,
-      pcm, frame_size, data, max_data_bytes, 16, opus_surround_downmix_float);
+      pcm, frame_size, data, max_data_bytes, 16, opus_surround_downmix_short);
 }
 
 #ifndef DISABLE_FLOAT_API
@@ -802,7 +802,7 @@
 )
 {
    return opus_multistream_encode_native(st, opus_copy_channel_in_float,
-      pcm, frame_size, data, max_data_bytes, 16, opus_surround_downmix_short);
+      pcm, frame_size, data, max_data_bytes, 16, opus_surround_downmix_float);
 }
 #endif