Correct int16 audio frame setup in audioproc_f
Currently, audioproc_f crashes on a DCHECK as the data vector of Int16Frame is not resized. Bug: webrtc:5298 Change-Id: I897cf0fce07e0ed2c0a365a965fa50fd3d8ddd18 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/172624 Reviewed-by: Per Åhgren <peah@webrtc.org> Commit-Queue: Sam Zackrisson <saza@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30969}
This commit is contained in:
committed by
Commit Bot
parent
6f402f991e
commit
01c107e37a
@ -40,6 +40,7 @@ struct Int16Frame {
|
||||
rtc::CheckedDivExact(sample_rate_hz, kChunksPerSecond);
|
||||
this->num_channels = num_channels;
|
||||
config = StreamConfig(sample_rate_hz, num_channels, /*has_keyboard=*/false);
|
||||
data.resize(num_channels * samples_per_channel);
|
||||
}
|
||||
|
||||
void CopyTo(ChannelBuffer<float>* dest) {
|
||||
|
||||
Reference in New Issue
Block a user