DescriptionAudioCodingModuleImpl::Encode: Use a Buffer instead of a stack-allocated array
The Buffer is saved between calls, so after the initial allocation
it'll already be allocated and of the right size. The stack-allocated
array had the advantage of requiring no heap allocation at all, but
for most popular encoders it ended up allocating about 15 kB too much,
and now that we allow user-defined encoders there was also the
(remote) possibility that the buffer would actually be too small.
R=henrik.lundin@webrtc.org
Committed: https://chromium.googlesource.com/external/webrtc/+/0163fb2ad7c95a0ac20a8a9861073e2a16fa77b4
Patch Set 1 #
Total comments: 3
Patch Set 2 : review comment #
Dependent Patchsets: Messages
Total messages: 10 (3 generated)
|