Skip to content

Commit ab957dc

Browse files
committed
we need to update len
1 parent 92cb969 commit ab957dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

livekit/src/plugin.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ impl Stream for AudioFilterAudioStream {
294294

295295
if this.buffer.len() >= this.frame_size {
296296
let data = this.buffer.drain(..this.frame_size).collect::<Vec<_>>();
297-
let mut out: Vec<i16> = Vec::with_capacity(this.frame_size);
297+
let mut out: Vec<i16> = vec![0; this.frame_size];
298298

299299
this.session.process_i16(this.frame_size, &data, &mut out);
300300

0 commit comments

Comments
 (0)